*
The moose likes EJB and other Java EE Technologies and the fly likes Re: Difference between JavaBean and EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Re: Difference between JavaBean and EJB" Watch "Re: Difference between JavaBean and EJB" New topic
Author

Re: Difference between JavaBean and EJB

Joe Cheung
Ranch Hand

Joined: Oct 18, 2002
Posts: 104
Dear all,
What is the major difference between JavaBean and EJB?
Regards,
Joe


Joe
Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
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
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
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
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"


Kishore
SCJP, blog
 
wood burning stoves
 
subject: Re: Difference between JavaBean and EJB
 
Similar Threads
Basic dout on EJB and JB
JavaBean et EJB
what is the difference between EJB 2.0 and EJB 2.1?
Javabean and java class
Difference between actionform and javabean