Hi.  Yes, you're right.  There's a difference between "Java Beans" and
"Enterprise Java Beans".  While both are similar in the fact that they use
the "reusable" philosophy, they are actually quite different.

Java Beans are strictly programmed GUI components.  A program can then use
these beans and "drop" them into an application.  Hence, a Java Bean can be
purchased and then "dropped" into your project.

Enterprise Java Beans are non-GUI server-side components.  When talking
about EJBs, you'll often hear about "business logic".  This refers to the
bean's ability to encapsulate certain "business logic" methods - like
accessing your bank account, or updating a user database.  EJBs come in two
flavors - session beans and entity beans.  Session beans basically provide
a service, such as accessing your bank account.  Entity beans basically
represent data, such as your bank account itself.

Hope this helps.

Stanley Tan

At 08:51 PM 3/25/01 +0530, you wrote:
>Hi
>
>I was going through the J2EE BluePrints online
>(http://java.sun.com/j2ee/blueprints). There seems to be a difference
>between "JavaBeans components" and "Enterprise beans". Could somebody
>explain to me the difference?
>And where do "Session beans" and "Entity beans" fit in??
>
>Thanks in Advance
>-Erwin

===========================================================================
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to