IBM Support

Configure and get a data source working on JBoss Application Server with Sterling Multi-Channel Fulfillment (MCF) Application

Question & Answer


Question

How do you configure and get a data source working on JBoss Application Server with Sterling Multi-Channel Fulfillment (MCF) Application?

Answer

To configure a data source on JBoss Application Server:

In versions lower than MCF 8.0

    1. Copy <JBOSS_HOME>/docs/examples/jca/oracle-ds.xml to <JBOSS_HOME>/server/<server_name directory>/deploy folder.

    2. Customize the oracle-ds.xml -
      a. JNDI name defaults to OracleDS. (There is no need to change the JNDI name)
      b. Update the “connection-url”, “user-name” and “password” tags with appropriate values.
      c. Add new tags for providing pool size.
        i. <min-pool-size>5</min-pool-size>
        ii. <max-pool-size>100</max-pool-size>
      d. Add a tag to provide timeout on idle as <idle-timeout-minutes>5</idle-timeout-minutes>
    3. Restart the Application Server.

In MCF version 8.0 or higher, in addition to the previous steps:
    1. In the <INSTALL_DIR>/properties/customer_overrides.properties, add the following properties:
      a. jdbcService.oraclePool.datasource=java:OracleDS (should be java:/OracleDS in v8.5)
      b. jdbcService.oraclePool_NoTrans.datasource=java:OracleDS (should be java:/OracleDS in v8.5)
      Where “java:OracleDS” is the name of the data source created on the JBoss side.

    2. In the JBoss startup script (run.sh), add -Dsci.dblogin.datasource.name=java:OracleDS and -Dvendor=jboss to JAVA_OPTS.

Testing the configuration - to verify if the changes are in place
    A. Update jdbc.properties with invalid username/password in all occurrences.
    B. Start the application server (The logs will show that the connection pool “OracleDS” is in use).
    C. If the application server starts properly without errors, then the connection pool is working.

After verification, revert all changed entries in jdbc.properties to the proper username/password or the agents will not work!

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

FAQ2858

Document Information

Modified date:
16 June 2018

UID

swg21518259