difference/s between a javabean and an enterprise java bean
could any let me know the difference/s between a javabean and an enterprise
javabean.
[89 byte] By [
rafiuddin] at [2007-11-9 21:19:12]

# 1 Re: difference/s between a javabean and an enterprise java bean
"rafiuddin" <shaik.rafiuddin@usa.net> wrote:
>
>could any let me know the difference/s between a javabean and an enterprise
>javabean.
Yes, there are many differences between a javabean and an enterprise javabean.
Here are a few of the most obvious:
A Javabean is a serializable java class that provides getter and setter methods
to access it's private data. It is used by JavaServer Pages to access server-side
resources (especially a database) and perform complex computations. Because
Javabean objects are serializable, they are often used in a distributed system
as a local view of some data that has been extracted from a database or is
being sent to a database.
Enterprise JavaBeans, on the other, is a robust server-side technology that
allows developers to leverage key enterprise-level, distributed services
without having to write the code themselves. This means that an EJB developer
can deploy her code into an EJB container (EJB server) and her code will
automatically benefit from the container's built-in security, load-balancing,
transaction-support, database persistence mechanism, and more. To learn
more about EJB, you can browse the information provided by Sun at http://java.sun.com/products/ejb/
I hope this is helpful!
Happy Coding!
Cordially,
Kyle Gabhart
dev-archive Java Pro
# 2 Re: difference/s between a javabean and an enterprise java bean
"rafiuddin" <shaik.rafiuddin@usa.net> wrote:
>
>could any let me know the difference/s between a javabean and an enterprise
>javabean.
Same as Microsoft's Simple DLL and COM DLL.
Ejb requires EJB servers to run as the COM DLLs require MTS to run.
Ranjan at 2007-11-11 23:07:06 >

# 3 Re: difference/s between a javabean and an enterprise java bean
"Ranjan" <r_anjani@yahoo.com> wrote:
>
>"rafiuddin" <shaik.rafiuddin@usa.net> wrote:
>>
>>could any let me know the difference/s between a javabean and an enterprise
>>javabean.
>
>Same as Microsoft's Simple DLL and COM DLL.
>Ejb requires EJB servers to run as the COM DLLs require MTS to run.
>
>
Please don't compare EJB to MTS. They can't be compared.
BTW: COM DLLs don't require MTS to run. We've been running straight COM without
MTS for years.
In my opinion (but don't quote me on that, rather you should use Sun if you
like quoting) Enterprise Javabeans are transactionable, distributable components
where a Javabean is not (per se).
BR-Chris.
# 4 Re: difference/s between a javabean and an enterprise java bean
Differences
Java Beans Enterprise JavaBeans
Can be either visible or non-visible Are decidebly Non-Visible & Remote Objects
Intended to be local to a single process on the client side Remotely executable
components deployed on the Server
Uses the BeanInfo classes, Property Editors & Customizers to describe itself
Uses the Deployment Descriptors to describe itself
Can also be deployed as an Active X control Can not be deployed as an Active
X control since OCXs run on the desktop
JavaBeans is general-purpose component model
EJB is a component model that is enterprise specific
Beans are visually customizable.
EJBs are customized using deployment descriptors
Can be nested Cannot be nested
Can be assembled manually or visually
Presently there are no tools that support this
Why Enterprise JavaBeans ?
Architectural Independence from middleware
WORA(Write Once Run Anywhere) for server side components
Establishes role for application development
Takes care of Transaction Management
Provides Distributed Transaction support
Helps create Portable & Scalable solutions
Integrates seamlessly with CORBA
Provides for vendor specific enhancements
Sachin at 2007-11-11 23:09:06 >

