Previous Topic: Oracle WebLogicNext Topic: Enabling LDAP Connection Pooling


JBoss

This section provides the steps to enable JBoss for JNDI-based database operations.

  1. Navigate to the location where you have deployed the WAR files. For example:
    <JBOSS_HOME>/server/default/deploy
    
  2. Create a data source descriptor file named arcotdatabase-ds.xml.
  3. Collect the following information that is required to define a data source in the arcotdatabase-ds.xml file:
  4. Open the arcotdatabase-ds.xml in a text editor.
  5. Add the following content:
    <?xml version="1.0" encoding="UTF-8"?>
    <datasources>
    <local-tx-datasource>
    <jndi-name>SampleDS</jndi-name>
    <connection-url><jdbcurl></connection-url>
    <driver-class><JDBC Driver class></driver-class>
    <user-name><database_userid></user-name>
    <password><database_password></password>
    <exception-sorter-class-name><Exception Sorter Class></exception-sorter-class-name>
    </local-tx-datasource>
    </datasources>
    
  6. Save and close the file.