Chapter 8 Creating J2EE Applications for BEA WebLogic
Follow these steps to bind a javax.sql.DataSource resource factory to a JNDI name in WebLogic Server. Note that you can set up either a transactional or non-transactional JDBC data source as necessary:
weblogic.jdbc.DataSource.jndi_name=pool_name
where jndi_name is the full WebLogic Server JNDI name to bind to the data source and pool_name is the name of the WebLogic Server connection pool you created in step 1.
For example, to set up a non-transactional connection pool for demonstration purposes, you might enter:
weblogic.jdbc.DataSource.weblogic.jdbc.demoPool=demoPool
This binds a transactional data source for the "demoPool" pool to the JNDI name, "weblogic.jdbc.demoPool".
For transactional JDBC datasources, enter:
weblogic.jdbc.TXDataSource.jndi_name=pool_name
where jndi_name is the full WebLogic Server JNDI name to bind to the transactional data source and pool_name is the name of the WebLogic Server connection pool you created in step 1.
For example, to set up a non-transactional connection pool for demonstration purposes, you might enter:
weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.demoPool=demoPool
This binds a transactional data source for the "demoPool" pool to the JNDI name, "weblogic.jdbc.jts.demoPool".
Copyright (C) 2005. Sybase Inc. All rights reserved. |
![]() |