aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Session bean and Java bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Session bean and Java bean" Watch "Session bean and Java bean" New topic
Author

Session bean and Java bean

pradeep anandan
Greenhorn

Joined: Jul 02, 2001
Posts: 25
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

Joined: Jun 25, 2001
Posts: 15657
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
pradeep anandan
Greenhorn

Joined: Jul 02, 2001
Posts: 25
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
 
subject: Session bean and Java bean
 
Similar Threads
some very basic questions
How to access method of another Bean
singleton stateless session bean
how to run Bean in Jbuilder9
Can anyone tell me best tutorial for self learning EJB?