I deployed an EJB in WebLogic5.1 and Configured the property file of the weblogic to support JSP and I created a JSP file and plased it in the dir c:\weblogic\myserver\public_html. then I can access it from the localhost:7001\myjsp.jsp. But if i want use that EJB in a JSP, I want Help where to place the Bean class (i am asking the compleate path)and where will it needs to put the jar file and also what will be the package i need to plase in the JSP file. Can any one help me (if possable with a sample code) Thanks in advance.
<a href="http://www.jobklub.com" target="_blank" rel="nofollow">http://www.jobklub.com</a><br /> 'Add Job To Life'
Yugandhar Naidu
Greenhorn
Joined: Jun 19, 2001
Posts: 3
posted
0
Thanx Mr.Hanumanth Reddy, I have one doubt, You told that the best way to call ejb is to use beans and access the ejb instead of calling it directly I can't understand it. Can you explain me more about the above statement with an example. Thanx in advance.
Here is what you should do Rather than calling the EJB directly from the JSP page, you should write a JavaBean that accesses the EJB this Java Bean in then called from the JSP page. That advantage of using this method is that the JSP pages that you write are isolated from the changes that may accour at the EJB tier. You can get more infomration about such designs by looking at the J2EE Design Patterns suggested by Sun.