Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference b/w Simple Java Bean and Enterprise Java Bean(EJB)

 
Arun varma
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one tell me the difference between Java Bean and Enterprise Java Bean(EJB).And where Java Bean and Enterprise Java Bean(EJB) can be used.
 
subbarao N.V
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

JavaBean and Ejb both are component technologies.Java Bean have set of properties(setters and gettters) and Ejb have set of propeties(implements the serializable interface,Support the Rmi Technology).



But Java Bean will work in client side and server side.Java bean can work as a standlone(AWT class) and work as a serverside application(Implement the business logic).



But Ejb's work in ServerSide only.These are Build for Business Logic purpose.We can configure these components in any Ejb container.The Ejb can be used by many no of clients like servlets,standlone,gui application.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"subbarao N.V",

Your account has been disabled. Should you wish to get it re-instated please contact me via email.

bear
JavaRanch Sheriff
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic