File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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: 383
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Re: Difference between JavaBean and EJB
 
Similar Threads
Difference between actionform and javabean
Basic dout on EJB and JB
what is the difference between EJB 2.0 and EJB 2.1?
JavaBean et EJB
Javabean and java class