WebSphere Application Server Liberty type-4 connections sample server.xml configuration file
The sample server.xml file is used to install IMS Universal Database resource adapters, define connection factories which connect to an IMS™ database, and deploy an RESTful service application in WebSphere Application Server Liberty.
<server description="new server">
<featureManager>
<feature>jca-1.7</feature>
<feature>jndi-1.0</feature>
<feature>jdbc-4.1</feature>
<feature>localConnector-1.0</feature>
</featureManager>
<!-- To access this server from a remote client add a host
attribute to the following element, e.g. host="*" -->
<httpEndpoint host="*" httpPort="1692" httpsPort="9443"
id="defaultHttpEndpoint"/>
<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true"/>
<library id="global">
<!-- Include imsudb.jar -->
<fileset dir="usr/lpp/…imsjava/" includes="imsudb.jar"/>
<!-- (OPTIONAL) Include jars that contain local database
metadata (dbviews) -->
<fileset dir="usr/lpp/…/" includes="dbviews.jar"/>
</library>
<!-- Defining resource adapters -->
<resourceAdapter id="imsudbJLocal"
location="usr/lpp/…imsjava/rar/imsudbJLocal.rar"/>
<resourceAdapter id="imsudbLocal"
location="usr/lpp/…imsjava/rar/imsudbLocal.rar"/>
<resourceAdapter id="imsudbJXA"
location="usr/lpp/…imsjava/rar/imsudbJXA.rar"/>
<resourceAdapter id="imsudbXA"
location="usr/lpp/…imsjava/rar/imsudbXA.rar"/>
<!-- Defining connection factories -->
<!-- Associate a connection factory to a resource adapter through
the resource adapter’s id. -->
<connectionFactory jndiName="HOSP_JDBC_T4">
<properties.imsudbJLocal databaseName="MYPSB"
datastoreName="IMS1" datastoreServer="myHostName"
portNumber="1234" driverType="4"
user="myUserID" password="myPassword"/>
</connectionFactory>
<connectionFactory jndiName="HOSP_CCI_T4">
<properties.imsudbLocal databaseName="MYPSB"
datastoreName="IMS1" datastoreServer="myHostName"
portNumber="1234" driverType="4"
user="myUserID" password="myPassword"/>
</connectionFactory>
<connectionFactory jndiName="HOSP_JDBC_T4XA">
<properties.imsudbJXA databaseName="MYPSB"
datastoreName="IMS1" datastoreServer="myHostName"
portNumber="1234" driverType="4"
user="myUserID" password="myPassword"/>
</connectionFactory>
<connectionFactory jndiName="HOSP_CCI_T4XA">
<properties.imsudbXA databaseName="MYPSB"
datastoreName="IMS1" datastoreServer="myHostName"
portNumber="1234" driverType="4"
user="myUserID" password="myPassword"/>
</connectionFactory>
<!-- Enable or Disable (Default) JDBC trace -->
<!-- The log files can be found at:
[usr/lpp/…/servers/server_name/logs] -->
<logging traceSpecification=
"*=info:com.ibm.ims.db.opendb.*=finest"/>
<webApplication id="myApp" location="myApp.war" name="myApp"/>
</server>