wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes J2EE Project -- HELP!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "J2EE Project -- HELP!!!" Watch "J2EE Project -- HELP!!!" New topic
Author

J2EE Project -- HELP!!!

Sandeep VL
Greenhorn

Joined: Mar 21, 2001
Posts: 2
Hi,
I'm working into a project that involves EJB,JSP,Servlets.
I've 2 options:
1. Call EJB from JSP
2. Call Servlet from JSP and Servlet inturn will make a call
to EJB.
Which is the best technique of the two and why???
Pl. help me.
Have a great day.
Sandeep
Vivek Viswanathan
Ranch Hand

Joined: Mar 03, 2001
Posts: 350
hi
The first option is possible only if u get a reference to the EJBHome obect in the inti() method of the JSP page.
The Second option is a better option since according to the Model 2 JSP Architecture you will b seperating the Java Code ( in the Servlet) from the View ( the JSP pages taht is sent to the Client browser).
You will get some more information of JSP Model to Structure over here.... it will help u in designing JSP pages for Enterprise Systems
http://java.sun.com/j2ee/blueprints/web_tier/jsp_page_design/index.html
vivek

Vivek Viswanathan SCJP 1.2, SCJP 1.6,SCJD,SCEA,SCWCD,IBM-484,IBM-486,IBM-141,Ms.NET C# 70-316,SCMAD, LPIC-I
Sandeep VL
Greenhorn

Joined: Mar 21, 2001
Posts: 2
Thanx Vivek.
I'm new to J2EE and designing concepts.So Pl. guide me how do I go about looking for which is the best way for architecture designing and utilising J2EE to maximum level.
Sandeep
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2EE Project -- HELP!!!