WebSphere Liberty is a lightweight alternative to the traditional WebSphere application servers. This topic describes how to deploy an application developed using the Interface Mapping Toolkit to a WebSphere Liberty application server.
For Windows platforms:
At a command prompt, enter the following command from the bin directory of your WebSphere Liberty installation:
server start server_name
For UNIX platforms:
startserver.sh myServer
installUtility install servlet-3.1
See your WebSphere Liberty documentation for details.
<featureManager> <feature>ejbRemote-3.2</feature> <feature>ejbLite-3.2</feature> <feature>localConnector-1.0</feature> <feature>jca-1.7</feature> <feature>jsp-2.3</feature> <feature>servlet-3.1</feature> <feature>jndi-1.0</feature> </featureManager>
<resourceAdapter id="mfcobol-notx" location="<PathToResourceAdapter>\mfcobol-notx.rar" > <classloader apiTypeVisibility="spec, ibm-api, stable, api"/> </resourceAdapter>
<resourceAdapter id="mfcobol-notx" location="<PathToResourceAdapter>\mfcobol-xa.rar" > <classloader apiTypeVisibility="spec, ibm-api, stable, api"/> </resourceAdapter>
<resourceAdapter id="mfcobol-localtx" location="<PathToResourceAdapter>\mfcobol-localtx.rar" > <classloader apiTypeVisibility="spec, ibm-api, stable, api"/> </resourceAdapter>
<connectionFactory jndiName="eis/MFCobol_v1.5"> <resource-ref id="CCIMFCobol_v1.5"> <res-ref-name>CCIMFCobol_v1.5</res-ref-name> </resource-ref> <properties.mfcobol-notx ServerHost="localhost"/> <properties.mfcobol-notx ServerPort="9003"/> <properties.mfcobol-notx Trace="false"/> <properties.mfcobol-notx EnhancedTrace="false"/> </connectionFactory>
Add an application definition to your server.xml file. The definition must include the path to your .ear file, and specify that the application uses the same class loader as the resource adapter. For example, the application definition to deploy an EJB that uses a non-transactional resource adapter might look like this:
<application id="TestApp" name=" TestApp" type="ear" location="..\ear\TestApp.ear"> <classloader classProviderRef="mfcobol-notx" /> </application>
At a command prompt, enter the following command from the bin directory of your WebSphere Liberty installation:
server stop server_name