• Post Reply Bookmark Topic Watch Topic
  • New Topic

difference b/w bean & ejb

 
syed samad
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!