aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes java Beans VS EJB's Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "java Beans VS EJB Watch "java Beans VS EJB New topic
Author

java Beans VS EJB's

Jawahar Rajan
Ranch Hand

Joined: Feb 28, 2002
Posts: 38
All,
As a beginner in Java programming I am often confused by the use of Java Beans and Enterprise Java Beans.
My undestanding is that EJB's are used as a business layer (contains the business logic) in web applications or enterprise development.
Java Beans alone are more reusable blocks of code typically for Graphical display - applets.
Will this new book (this week's give away) address these differences.
All opinons and suggestions are welcome.
Thanks
Jawahar
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Moving this to the J2EE and EJB forum


Dave
Irene Loos
Ranch Hand

Joined: Apr 15, 2002
Posts: 75
Check this link out.


Irene Loos
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14568
    
    7

A JavaBean doesn't HAVE to be associated with a graphical component - it just has to represent an object that has properties.
EJB's carry that step further in that they provide basic JavaBean functionality with support for transaction management, safe use in a multi-threaded environment and built-in support for object persistency (in the case of Entity EJBs).
The overhead to setup and maintain EJBs (not to mention the effort to create them) is significantly higher than for simple JavaBeans. On the other hand, if you NEED the kinds of functionality that EJBs provide, EJBs give a pre-debugged framework in which to operate so you don't have to re-invent it all.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: java Beans VS EJB's
 
Similar Threads
Running multiple ejb processes
Is there any difference between java bean and enterprise bean?
What's the main difference between regular Java Beans and EJB ?
j2EE,EJB,jdk
JavaBeans vs EJB