ATG applications running on JBoss use a JTDataSource component, which must be configured to point to a JNDI reference to a DataSource component running in JBoss.

The ATG platform installation includes an XML file that contains the configurations for all the data sources for each application, along with a JNDI name for each data source. The startup script copies this XML file into the JBoss config directory so that these data sources are already running when JBoss starts.

Any Dynamo application that does not use the standard out of the box SOLID DataSource with admin/admin login must specify which data source it will use. This should be specified in the jbossconfig configuration layer (see Configuration Override Layers later in this chapter, and Working with Configuration Layers in the Configuring Nucleus Components chapter of the ATG Programming Guide).

In order to use the jbossconfig directory, modify the MANIFEST.MF file for the given Dynamo module to include the following property:

ATG-JbossConfig-Path: jbossconfig

Then make a directory called jbossconfig (if it does not already exist for your application) and put your properties files there.

When you install the ATG platform, a JBoss datasource named atg-solid-ds.xml is created for SOLID, using the JNDIDataSourceName ATGSolidDS and other SOLID parameters (URL, driver class, etc.). The SOLID database contains the tables necessary for running ATG and the demo applications. When you deploy your site, you should reconfigure JBoss to use a different data source. The SOLID database is suitable for evaluation and development, but not for a high-volume site.

To configure a new data source, go to the <JBdir>\server\atg\deploy\atg-solid-ds.xml file (or the equivalent location if your server is named differently). Rename it to something appropriate (the file name must end in –ds.xml, for example atg-oracle-ds.xml) and edit the following configuration settings:

See your application server documentation for information on the available parameters. For example:

<?xml version="1.0" encoding="UTF-8"?>
    <xa-datasource-property name="User">username</xa-datasource-property>
    <xa-datasource-property name="Password">password</xa-datasource-property>
    <!-- Uncomment the following if you are using Oracle 9i
    <xa-datasource-property name="oracle.jdbc.V8Compatible">true</xa-

If you have changed the JNDI name, also change the one configured in the <ATG2007.3dir>/home/localconfig/atg/dynamo/service/jdbc/ file:


For example, java:/ATGOracleDS.

Then edit <JBdir>/bin/ and add your database class files, such as Oracle’s ojdbc14.jar, to the JBoss classpath. To do this, search for x$JBOSS_CLASSPATH and just above it, create a line:


Rebuild and redeploy your EAR file.

loading table of contents...