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
posted
0
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
posted
0
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.