Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Upgrade and Migration Guide

- Previous: EJB Migration
- Next: Migrating EJB Applications that Support SFSB Failover (Enterprise Edition)

### Session Beans

- The `<!DOCTYPE>` definition must be modified to point to the latest DTDs with J2EE standard DDs, such as `ejb-jar.xml`.

- Replace `ias-ejb-jar.xml` file with the modified version of this file, named `sun-ejb-jar.xml,`created manually according to the DDs. For more details, see h`http://ttp://wwws.sun.com/software/dtd/appserver/sun-ejb-jar_2_1-1.dtd`

- In the `sun-ejb-jar.xml` file, the JNDI name for all the EJBs must be added before ”`ejb/`’ in all the JNDI names. This is required because, in Application Server 6.5, the JNDI name of the EJB can only be `ejb/<`ejb-name`>` where `<`ejb-name`>` is the name of the EJB as declared inside the `ejb-jar.xml` file.

  In the Application Server, a new tag has been introduced in the `sun-ejb-jar.xml`. This is where the JNDI name of the EJB is declared.

Note –

To avoid changing JNDI names throughout the application, declare the JNDI name of the EJB as `ejb/<`ejb-name`>` inside the `<`jndi-name`>` tag.

- Previous: EJB Migration
- Next: Migrating EJB Applications that Support SFSB Failover (Enterprise Edition)

- © 2010, Oracle Corporation and/or its affiliates