difference/s between a javabean and an enterprise java bean


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: difference/s between a javabean and an enterprise java bean

  1. #1
    rafiuddin Guest

    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.

  2. #2
    Kyle Gabhart Guest

    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
    DevX Java Pro


  3. #3
    Ranjan Guest

    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.



  4. #4
    Chris Vertonghen Guest

    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.

  5. #5
    Sachin Guest

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center