• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB & Java Beans

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • 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: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No body is there to help me ???
 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
  • 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.
 
Ankit Doshi
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!