Frame Works in J2ee

Discussions

General J2EE: Frame Works in J2ee

  1. Frame Works in J2ee (4 messages)

    Hi All,

    Are there any generally accpeted design guidlines or any costraints that have to be considered while we are developing a Frame work for J2EE.

    Are there any resources from where i can find the information about this.

    Thanks in advance

    L.Sreedhar

    Threaded Messages (4)

  2. Frame Works in J2ee[ Go to top ]

    'Core J2EE Patterns" book available online on the Sun's Java Site under 'BluePrints' section should provide sufficient guidance.
  3. Frame Works in J2ee[ Go to top ]

    In addition, you might also want to check-out the "EJB Design Patterns" book available for download from this site.
  4. hello. I am sam great.I am a java developer. I see a document about a new J2EE FRAMEWORK with name shine. that`s support team say : this frame work is a powerful framework with easyest way to use. they say: shine include MVA,Service Oriented Scope,Jwms(java web model service) and ... I thirsty for what is JWMS? and I want to know his FRAMEWORK how support SERVICE ORIENTED SCOPE? this questions Intrested me about attaining more information about shine framework. when I searching about shine in internet and sourceforge.net,I sow sevral document about that ,but one of them was more intresting for me ,that was Learning shine Frame work. I can`t remember exactly but I think that writen via SHINE FRAMEWORK`s supprt team. this document have a SIMPLE HELLO WORD project that Implemented with shine framework. it`s realy intrest for me. when I read it and try to deploy that sample with shine ,I understand that I find my favorite framework for Implementing my J2EE projects. but I can`t use it now.because of shine is not yet reliable because it`s new and untried. but I thing this framework will be one of powerfull J2EE FRAMEWORKs as soon as soon.maybe shine is the best J2EE Framework in near FUTURE. this framework is very intrested for me and I write this document for all developers that want to find a powerfull J2EE framewok for his/her projects. I say All of my information about shine to you. please if you finde a new document about shine or other new J2EE framework send it to my email for me. I will happy when I see new information about shine or other new J2EE frameworks. shines framework Address in sourceforge.net is: http://sourceforge.net/search/?type_of_search=soft&words=shine I find this information in this Address: www.j2sos.org and for you my friend you can see sevral document and learning about shine frame work in "www.j2sos.org" in technical forum. I sure you like me after one time work with shine will be a user for shine in future. good lock. your friend: sam great
  5. Hi! I'm Mehdi Mousavi, member of Shine Framework's support team. Today I'll teach you developing Hello world sample. I want teach & show you this powerful technology. We use (jdeveloper10g) IDE for develop this project by shine framework. In start , make new application with name "learning-shine" like this step : 1- Right click on application 2- choice new application workspace 3- complete this step follow up picture 2 As you see , new application have 2 part (model and view). Now in continue, we should add Shine library to our project as below: For do this , do this step: Double-click on view → library → add shine, jsp runtime & servlet runtime If the shine library isn't in your list, add it as below: Click on New button in the bottom of the page → Edit → Add Entry → find Shine.jar & click on Select → ok As you see Shine library has added to your library list. Create request page in next step we should create a JSP request page : Right-click on view → New → jsp page → ok → name your page as "Request.jsp" → ok As you see, your page has created. now , we must design this page . For do this , in source tab write this code: <%@ page contentType="text/html;charset=windows-1252"%> untitled

    Fname:

    Lname:

    We design one HTML form with two text field for give Fname (First name) & Lname (Last Name) . also if you want, you can design your page without write . component pallet will help you to Create your HTML form Create response page : Now we need create one response page (a service) . Right-click on view → New → jsp page → ok → name your page as "ResponseServer.jsp" → ok As you see, your page has created. Now we write this code in that page like beneath code: <%@ taglib uri="/WEB-INF/shine.tld" prefix="shine"%> <% String x=(String) request.getParameter("Fname"); String y=(String) request.getParameter("Lname"); out.print("welcome Mr/Mrs "+x+" "+y); %>




    <%out.print("Hello.I am "+x+" "+y); %>




    <%out.print("Email Address:"+" ");%> <%out.print(" www.Java2Oracle.com");%> As you see in the source we have a taglib named "shine.tld" that is at "shine-framework/lib/tld". You should copy it at this address: ../jdev/mywork/shine/view/public_html/web-inf/ After this tag, we have "Header" & "Footer" in our source. Use Header & Footer to write the codes & massages you want to be shown on the top & bottom of all pages. Like welcome massage you see on the top of the pages while mail checking. As you see, we put welcome massage & the codes of getting two variables of the form and store them in two public variables, in header & the mail address in footer in this sample. You can use all of the programming codes in header & footer. ** Interesting tip for the developers who had worked with other frameworks like Struts: If you want, you can use all struts codes throw the tags. (Although after working with Shine, you'll understand that Shine is more strong that you won’t need to do like that.) In the source continuation we have "tag" & "shine:tag" that are related to the Shine's own architecture, JWMS. In Shine, instead of having a lot of response pages we can have one or more services that include our response pages as some tags. e.g. / The Bank is the service & its operations are the tags. Indeed in this ways, shine create all response pages in one response page (package). In this sample, we have a tag named "tag1" that shows this output massage: "Hello . I am fname (First name) lname (Last name)" *developer saved with tags of shine in create more and work with many response pages.* Now let's create the Mapping class: MappingClass is the engine of the Shine framework. To create it do the instructions as below: Right-click on view → New → java class→ ok → name your class as "ShineMappingClass" → ok Now you have a class named "ShineMappingClass". Ok, write these codes in it now: package view; import com.evermind.client.clientassembler.ClientAssembler; import j2sos.shine.controller.Mapping; import j2sos.shine.script.Server; public class ShineMappingClass extends Mapping { public void rater() { String b=(String) getRequest().getParameter("Fname"); String c=(String) getRequest().getParameter("Lname"); System.out.print("Hello"+b+c+"How are you?"); forward("success","tag1"); } } As you see all of the executive functions implements in "rater ()" method. In this sample first we get Fname & Lname of the input then cast them to String mode and store them in "b" & "c" variables. The "System.out.print("Hello "+b+" "+c+". How are you?!")" code makes just a test output that is visible only in IDE. "forward("ResponseService","tag1")" code says go to "ResponseService" & run "tag1". Now we just need to set the properties of "web.xml" file. Open "web.xml" file & write this source in it: <!--?xml version = '1.0' encoding = 'windows-1252'?--> Empty web.xml file for Web Application ShineMappingClass view.ShineMappingClass ResponseService http://127.0.0.1:8988/learning-shine-View-context-root/ResponseService.jsp ContentType text/html; charset=utf-8 ServerConsoleStatus false ShineMappingClass ShineMappingClass.exec 35 html text/html txt text/plain As you see, we set colored parts as below: Blue part: say the name & the address of "ShineMappingClass". Red part: set the name of "ResponseService.jsp" as ResponseService. (Indeed it is the same name that had used in "forward" in "ShineMappingClass".) * An applicable tip: If we had more services, we should do this definition for each one, separately. Brown part: introduce ShineMappingClass as executive class. Congratulations! Now us project is ready , and you must run it. For do this , you must run request.jsp page . After run , one page be open with two text field like this picture: Now if you insert fname (First name) and lname (Last name) , after push submit you see this Response: Congratulate Now, You can deploy one simple project by shine I hope you would enjoy yourself! In next document , I will learn you one easy sample with Ajax. Good luck. Mehdi Mousavi. to see complete document with picturs see www.j2sos.org see technical forem