• 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

EJB & Java Beans

 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all ,
Plz answer my 2 questions :

1] How EJB & Java Beans are differ .
2] I know little bit of Java Beans like it has getXXX & setXXX method .Is there any other uses of Java Bean .

Thanks ,
Ankur
 
ankur rathi
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No body is there to help me ???
 
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no similarity as such between EJBs and Java Beans.

One major difference between EJBs and normal Java Beans is that former are remote objects while later are not( exception being local interface).

Also EJBs are created and managed by EJB Container, which provides them with lots of functionality.
 
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
EJBs and Java Beans are completely different.

EJBs are distributed components, deployable components. Distributed component needs a runtime environment, usually some type of container, so EJBs are deployed in container and their lifecycle is managed by the container. Also, the EJBs deployed individually usually performs one business task, and hence client can usually access EJB directly to perform a particular business function.

Whereas java beans are usually a small part of a bigger system, that serves for one business functionality. They help build larger systems.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic