JavaBeans are objects that let you encapsulate data, functionality, and behavior. You can access a JavaBean through JSP tags.
EJB's are also reusable components but that is were the commonality ends. EJB's have a different set of interfaces and are not accessible directly and you need to go through an EJB container. The EJB container provides many services which EJB's can use including security, transactions, and persistence. The container also manages all communication to the beans as well as handling bean multithreading. So, if you have a complex system that requires transaction management, for instance, you should look into using EJB's but if you simply need to encapsulate some data or simple behavior then you should look at JavaBeans. Justy ----- Original Message ----- From: "Henrik Johansson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 12, 2001 12:30 AM Subject: Enterprise JavaBean vs. JavaBean > Hi! > > What's the difference between an enterprise javabean and a javabean? Or is > it the same thing? > > /Henke > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com