wood burning stoves 2.0*
The moose likes Servlets and the fly likes JSP and EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP and EJB" Watch "JSP and EJB" New topic
Author

JSP and EJB

ROBINSON
Greenhorn

Joined: Jun 19, 2001
Posts: 6
Dear all,
I am new to EJB and JSP. I want to call a EJB from JSP Client.
Can anybody help me to do a Program?
Thanks & Regards
ROBINSON

Thanks & Regards<P>ROBINSON
Johannes de Jong
tumbleweed
Bartender

Joined: Jan 27, 2001
Posts: 5089
Your user name (Robinson) does not comply with the JavaRanch's naming policy. Pse change it you wish to continue posting in our forums.
You also posted this in the wrong forum try the "Servlets and JSP's" fourm.
Good luck
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
I've moved this post to Servlets and JSPs for you.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
vikinsa
Ranch Hand

Joined: Apr 18, 2001
Posts: 46
Hi!,
Try this...
import that bean in your jsp like this with the other imports..(Here I have a bean named user)
<%@ page import = "user.*" %>
then get the initial context. I am afraid I don't have the code for getting it. I had in one of the files named EVUtil2.
InitialContext ctx = (InitialContext)EVUtil2.getInitialContext();
Look up the home
RegisterUserHome regUserHome = (RegisterUserHome)ctx.lookup("RegisterUserHome");
Create remote..
RegisterUser regUser = regUserHome.create() ;
call the method..(here MemberGroups)
VectormemGroups = regUser.MemberGroups(OrgID, userId);
use the data.

I know this may be a little confusing but the steps are really very helpful. I wish I could give the whole code based on Weblogic5.0. Follow the steps and search for the correct syntaxes. All the best.
Originally posted by ROBINSON:
Dear all,
I am new to EJB and JSP. I want to call a EJB from JSP Client.
Can anybody help me to do a Program?
Thanks & Regards
ROBINSON


------------------
Vikas Aggarwal
Technology Associate
http://www.vikinsa.com


Vikas Aggarwal<BR>Technology Associate<BR>http://www.vikinsa.com
ROBINSON
Greenhorn

Joined: Jun 19, 2001
Posts: 6
Hi Vikinsa,
Received your mail. I'll try as per your steps.

Thanks & Regards
ROBIN
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP and EJB