Thanks guys, but I'm still in doubt. I *have* heard of Java Beans which are
GUI components, but aren't they strictly client-side? Can they be used on
the server??
The material I was reading seemed to refer to server-side JavaBeans
components. It says basically, "JSPs can use JavaBeans for application
logic and storing data, but that should preferably be in EJBs."
In fact, they mentioned JavaBeans in the chapter on "Web Tier" instead of
"Client Tier"

Pls see (http://java.sun.com/j2ee/blueprints/web_tier/jsp_page_design)

I read through some other articles on other sites, mentioning JavaBeans,
but they all seem to be talking about client-side stuff.
I'm getting pretty confused here. Any help is greatly appreciated.

Thanks
-Erwin

At 07:45 AM 3/26/01 +0800, you wrote:
>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