Dear all, What is the major difference between JavaBean and EJB? Regards, Joe
Joe
Julien Martin
Ranch Hand
Joined: Apr 24, 2004
Posts: 383
posted
0
The JavaBean is just a plain java class that complies with a few requirements (namely getter and setters, + public no-args constructor). The EJB is much more sophisticated and lives inside a container. The container offers many services and take charge of most of the low-level tasks for you. Julien.
roul ravashimka
Ranch Hand
Joined: Mar 16, 2004
Posts: 53
posted
0
hi, A EJB can be deployed and work as a standalone component. A JavaBean can't be deployed, it's a part of a bigger system. This bigger system can be run. Think of it as a helper object. Grz, Roul
MSc Electronics, ICT
Augg Stine
Greenhorn
Joined: Mar 24, 2004
Posts: 27
posted
0
java Bean is an ordinary class. But EJB is designed to run in the J2EE framework & act as an enterprise component. Hope i'm clear to you regards/ Augg
Kishore Dandu
Ranch Hand
Joined: Jul 10, 2001
Posts: 1934
posted
0
Please use search on this forum to get to these kind of often asked questions. You can also search on google example: "EJB Javabean difference"