Hi there,
Somebody let me know what are rules and regulations to
connect a jsp client with EJB. Where can a get a sample JSP client for a BMP bean.
Regards,
Rahul
-
Connecting EJB with JSP client (2 messages)
- Posted by: Rahul ..
- Posted on: April 25 2001 08:27 EDT
Threaded Messages (2)
- Connecting EJB with JSP client by manoj sharma on April 26 2001 04:36 EDT
- Connecting EJB with JSP client by Rahul .. on April 26 2001 06:45 EDT
-
Connecting EJB with JSP client[ Go to top ]
- Posted by: manoj sharma
- Posted on: April 26 2001 04:36 EDT
- in response to Rahul ..
follow the code which goes here
------here this is the JSP tags what i assume here that u r comfortable with JSP.
<%
try
{
Context ctx = getInitialContext();
Object obj = ctx.lookup("Your Beans jndi name");
HomeInterface home = (HomeInterface)PortableRemoteObject.narrow(obj,HomeInterface .class);
now on this home object u can get the reference to the remote and invoke the methods on that object
update me back if problem arises.
cheers
manoj
%>
-
Connecting EJB with JSP client[ Go to top ]
- Posted by: Rahul ..
- Posted on: April 26 2001 06:45 EDT
- in response to manoj sharma
Hi manoj,
Thanx.