Saket,

About EJB 2.0, have a look at:
http://www.javaworld.com/javaworld/jw-06-2000/jw-0609-ejb.html


If you choose an EJB 1.1 application server, you can develop EJB 2.0
compliant beans by using the "EJB 1.1 adapter design pattern". With this
pattern, your components may be deployed in an EJB 1.1 and/or EJB 2.0
container.

Here is an example:

        // This class contains EJB 2.0 code
        public class myEJB implements EntityBean {
                public abstract String getName();
                public abstract void setName();
                ...
        }

        // This class cotnains EJB 1.1 code
        public class myEJB_11_adapter extends myEJB {
                public String name;
                public void setName(String name) {this.name = name; }
                public String getName() { return name; }
        }

        To deploy you code in an EJB 1.1 container, deploy
"myEJB_11_adapter"
        To deploy you code in an EJB 2.0 container, deploy "myEJB"

        An EJB 2.0 has 2 interfaces:
                - A remote interface (similar to EJB 1.1)
                - An interface between the business logic and the persistent
state through
                  a set of abstract (and non distributed) assessors.

        This pattern implements the persistent state interface over the EJB
1.1 specification.
        You can also apply this pattern to manage EJB relationships.

        This pattern works fine, we already used it on projects, and
migration to EJB 2.0 become
        a piece of cake...

        Thibault Cuvillier
        http://www.valtech.com

>-----Original Message-----
>From: Saket Malhotra [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 29, 2001 12:06 PM
>To: [EMAIL PROTECTED]
>Subject: EJB 2.0
>
>
>What are the difference in EJB 2.0 and EJB 1.1 specifications?
>I have to select application server from the vendor which
>supports EJB 1.1 and other EJB 2.0? What all points i need to
>look for that?
>Thanks
>Saket
>
>===============================================================
>============
>To unsubscribe, send email to [EMAIL PROTECTED] and
>include in the body
>of the message "signoff EJB-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to