Using a JNDI data source

It is possible for PolicyCenter to use a Java Naming and Directory Interface (JNDI) data source managed by any of the following application servers:

  • JBoss
  • Tomcat
  • WebLogic
  • WebSphere

The use of JNDI data source enables you to configure database parameters, including connection pool size, using the application server. Using a JNDI data source also provides you with another secure alternative to placing the user name and password in the database-config.xml file.

During startup, PolicyCenter records the connection made through JNDI with an entry similar to the following in the log:
INFO Looking up JNDI datasource 'jdbc/pcDataSource'...

Important caveats

  1. Always refer to the latest documentation from third party vendors.
  2. Guidewire supports JNDI using the drivers bundled with PolicyCenter only. Guidewire does not support the XA versions of a data source.
  3. If using a JNDI data source, create the JNDI data source on the application server before deploying PolicyCenter to the application server.