• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Re: Difference between JavaBean and EJB

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,
What is the major difference between JavaBean and EJB?
Regards,
Joe
 
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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"
 
reply
    Bookmark Topic Watch Topic
  • New Topic