File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how jsp access ejb?

 
zhebincong
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
place the ejb calling code as jva use bean complie it and call in the jsp
it should work
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JSP has to do a lookup.
But why do you want a JSP accessing an EJB? That is not a good design decision.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic