File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes how jsp access ejb? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "how jsp access ejb?" Watch "how jsp access ejb?" New topic
Author

how jsp access ejb?

zhebincong
Greenhorn

Joined: Jan 14, 2002
Posts: 11
hello
i have developed a servlet and a ejb,i invoke the ejb from the servlet,the ejb server and the web server is in the different computer,it works well. but i wonder if i can replace the servlet with the jsp?
because if i use the servlet,i can compile it in advance within the same machine with the remote interface and the home interface,after that,deploy them to different machine,but if i use jsp,it must be compiled during runtime,at this time,the jsp and ejb are in the different srver,how dos the jsp find the ejb
hanumanth reddy
Ranch Hand

Joined: Jun 12, 2000
Posts: 118
place the ejb calling code as jva use bean complie it and call in the jsp
it should work


<a href="http://www.jobklub.com" target="_blank" rel="nofollow">http://www.jobklub.com</a><br /> 'Add Job To Life'
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
The JSP has to do a lookup.
But why do you want a JSP accessing an EJB? That is not a good design decision.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how jsp access ejb?
 
Similar Threads
Local vs. Remote Interface
sorry !name convention
Calling an EJB from a servlet(gotta complete a submission pls reply soon)
Calling ejb on OC4J application server
Difference between Remote & Local