IntelliJ Java IDE
The moose likes EJB and Other Java EE Technologies and the fly likes difference b/w bean & ejb Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and Other Java EE Technologies
Reply Bookmark "difference b/w bean & ejb" Watch "difference b/w bean & ejb" New topic
Author

difference b/w bean & ejb

syed samad
Greenhorn

Joined: Oct 10, 2001
Posts: 2
please clear me the difference b/w bean & ejb.
i was told that bean are like COM in microsoft and ejb are like
DCOM .
if i use simple bean in my network application and used it throug
RMI than it is also ejb, as i am using this bean as distributed
component.
please clear my point, i am new to ejb
also advice me how to start ejbs
abdul samad
amit ang
Ranch Hand

Joined: Sep 28, 2001
Posts: 38
Hi Syed,
I think if u go through some book on EJB, the first thing u will get is the diff between JavaBean and EJB.
One of the diff is EJB's deployable where as beans are not.
Ejb's are more useful when u r having Transaction.
Some one correct me if Iam wrong

Originally posted by syed samad:
please clear me the difference b/w bean & ejb.
i was told that bean are like COM in microsoft and ejb are like
DCOM .
if i use simple bean in my network application and used it throug
RMI than it is also ejb, as i am using this bean as distributed
component.
please clear my point, i am new to ejb
also advice me how to start ejbs
abdul samad

Kutbuddin Shaikh
Greenhorn

Joined: Oct 06, 2001
Posts: 6
Dear Ones,
I would like to add something on this.
Java-Beans are meant to provide general purpose components, whereas the EJB's are meant to provides a format for a highly specialized business logic components.
Java-Beans can be executed anywhere either on client or on server, whereas EJB's can be executed only at server side(specifically business logic tier)
Java-Beans provide the java libraries and other services with container.whereas EJB's provides the persistence,security, Connection pooling etc.
Hope this will clear your doubt.
Kutub.
 
IntelliJ Java IDE
 
subject: difference b/w bean & ejb
 
Threads others viewed
How a Stateful Session Bean Maintains the session??
URL VS URI
Urgent - help needed for interview.
Difference b/w create() and ejbcreate()
How to integrate hibernate and EJB (stateless session bean)
IntelliJ Java IDE