Chapter 8 Creating J2EE Applications for BEA WebLogic


Resource Factories

In WebLogic Server, EJBs can access JDBC connection pools by directly instantiating a JDBC pool driver. However, it is recommended that you instead bind a JDBC data source resource into the WebLogic Server JNDI tree as a resource factory.

Using resource factories enables the EJB to map a resource factory reference in the EJB deployment descriptor to an available resource factory in a running WebLogic Server. Although the resource factory reference must define the type of resource factory to use, the actual name of the resource is not specified until the bean is deployed.

The following sections explain how to bind JDBC data source and URL resources to JNDI names in WebLogic Server.

Note that WebLogic Server also supports JMS connection factories (as described in the EJB 1.1 specification).

 


Copyright (C) 2005. Sybase Inc. All rights reserved.