File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session bean and Java bean

 
pradeep anandan
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi can anyone elaborate more on what is the basic difference between Stateless Session bean and Java bean.
As from the JSP page i can make the Java bean a scope of session.
What is the advantage of each

Thanks in advance
Pradeep
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17626
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, an Enterprise JavaBean is NOT a JavaBean! Or more correctly, the JSP useBean tag can't be used to directly reference an EJB, because the EJB itself isn't guaranteed to be in the JSP's classpath or VM. To use an EJB, you have to be able to look up its RMI in a suitable registry, and there's no way in the useBean tag to provide the required info. There is work being done to fix this, but I don't know of anything presently in production.
 
pradeep anandan
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tim Holloway:
Well, an Enterprise JavaBean is NOT a JavaBean! Or more correctly, the JSP useBean tag can't be used to directly reference an EJB, because the EJB itself isn't guaranteed to be in the JSP's classpath or VM. To use an EJB, you have to be able to look up its RMI in a suitable registry, and there's no way in the useBean tag to provide the required info. There is work being done to fix this, but I don't know of anything presently in production.

Thanks Tim
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic