To add to the clutter :o)
>From a simplistic and unsophisticated explanation, EJBs provide tons of
server-side functionalities and yada yada (you've read the rest).
JavaBeans, then, provide client-side functionalities (such as GUI, yet
deployable in non-GUI format). Just because it provides client-side
functions DOES NOT mean it cannot be used on the server-side. It just does
the same getter/setter (as the provided documentation makes note)
client-side functions, but on the server (so, they can interact between the
JSPs and EJBs, but without jumping from a Web Tier to the immediate Back
End).
So, instead, JavaBeans implemented server-side provide client-side-type
functions between JSPs and EJBs. Of course, you can also hard-code
JSP-to-EJB functions w/o using JavaBeans (architectually, at least).
I hope this simple and non-in-depth explanation helps.
Yours,
Nasser Dassi
Software & Internet Developer
[EMAIL PROTECTED]
"Openmindedness Rewards A Lifetime"
----- Original Message -----
From: "Erwin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 25, 2001 8:57 PM
Subject: Re: JavaBeans Components vs. EJBs
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
===========================================================================
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