Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between enterprise java bean and java bean  RSS feed

 
rehans oberoi
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can nayone tell me the difference between enterprise java bean and java bean.
thanks
 
Shanmugam Karthikeyan
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thought both are distributable components the main difference between an enterprise bean and a java bean is that the enterprise bean's life cycle is managed by the container whereas the java bean is used to getting and setting the properties of an object.


Another difference is that enterprise bean defines a process (ie.business logic) whereas a java bean is mainly for defining the properties of an object.
 
Ramakrishnan Viswanathan
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.coderanch.com/t/161195/java-EJB-SCBCD/certification/Java-Beans-Vs-EJBs
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!