Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Upgrade and Migration Guide

- Previous: Placing EJB References in the JNDI Context
- Next: Migrating CMP Entity EJBs

### Global JNDI context versus local JNDI context

Using the global JNDI context to obtain EJB references is a perfectly valid, feasible approach with Sun Java System Application Server 8.1. Nonetheless, it is preferable to stay as close as possible to the J2EE specification, and retrieve EJB references through the local JNDI context of EJB client applications. When using the local JNDI context, you must first declare EJB resource references in the deployment descriptor of the client part (`web.xml` for a Web application, `ejb-jar.xml` for an EJB component).

- Previous: Placing EJB References in the JNDI Context
- Next: Migrating CMP Entity EJBs

- © 2010, Oracle Corporation and/or its affiliates