This topic describes how to deploy an application developed using the Interface Mapping Toolkit to JBoss Application Server.
You can download JBoss Application Server from http://jbossas.jboss.org/downloads, and install it from there.
To open JBoss Application Server:
JBoss Application Server provides a Web interface for administering the application server. This administration interface is called the JBoss console. To start the console:
For JBoss 5.1 and 6.1, the JBoss Application Server provides deployment descriptors. These are packaged into the application archive (.ear) files when you generate EJBs using the Interface Mapping Toolkit. The deployment descriptors require some changes before generating EJBs. These changes are described below, in which your JBoss installation directory is the top-level directory of your JBoss installation.
Insert a SET statement to set the JAVA_HOME environment variable to the directory containing your JDK. For example:
set JAVA_HOME=c:\program files\java\jdk1.6
Set the callByValue attribute to true:
<attribute name="callByValue">true</attribute>
Set the java2ClassLoadingCompliance property to true:
<property name="java2ClassLoadingCompliance">true</property>
Set the isolated property to false:
<property name="isolated">false</property>
Set the callByValue property to true:
<property name="callByValue">true</property>
To enable tracing, set the trace attribute to true:
<attribute name="trace">true</attribute>
Set the callByValue property to true:
<property name="callByValue">true</property>
Set the isolated property to false:
<property name="isolated">false</property>
Set the callByValue property to true:
<property name="callByValue">true</property>
Set the callByValue property to true:
<property name="callByValue">true</property>
Set the java2ClassLoadingCompliance property to true:
<property name="java2ClassLoadingCompliance">true</property>
To enable tracing, set the trace attribute to true:
<attribute name="trace">true</attribute>
You can start and stop JBoss Application Server from the JBoss console or from the command line, as follows.
Resource adapters, named mfcobol*.rar, are supplied together with JBoss-specific deployment descriptors for using the resource adapters with the JBoss Application Server. The descriptors have names corresponding to the resource adapters, as follows:
To deploy a resource adapter:
<archive-validation enabled="false" fail-on-error="true" fail-on-warn="false"/>
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"> <resource-adapters> <resource-adapter> <archive>mfcobol-notx.rar</archive> <transaction-support>NoTransaction</transaction-support> <connection-definitions> <connection-definition class-name="com.microfocus.cobol.connector.spi.CobolNoTxManagedConnectionFactory" jndi-name="java:/eis/MFCobol_v1.5" pool-name="CobolConnectionFactory"> <pool> <min-pool-size>2</min-pool-size> <max-pool-size>10</max-pool-size> </pool> <security> <application/> </security> </connection-definition> </connection-definitions> </resource-adapter> </resource-adapters> </subsystem>
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"> <resource-adapters> <resource-adapter> <archive>mfcobol-localtx.rar</archive> <transaction-support>LocalTransaction</transaction-support> <connection-definitions> <connection-definition class-name="com.microfocus.cobol.connector.spi.CobolLocalTxManagedConnectionFactory" jndi-name="java:/eis/MFCobol_v1.5" pool-name="CobolConnectionFactory"> <pool> <min-pool-size>2</min-pool-size> <max-pool-size>10</max-pool-size> </pool> <security> <application/> </security> </connection-definition> </connection-definitions> </resource-adapter> </resource-adapters> </subsystem>
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"> <resource-adapters> <resource-adapter> <archive>mfcobol-xa.rar</archive> <transaction-support>XATransaction</transaction-support> <connection-definitions> <connection-definition class-name="com.microfocus.cobol.connector.spi.CobolManagedConnectionFactory" jndi-name="java:/eis/MFCobol_v1.5" pool-name="CobolConnectionFactory"> <xa-pool> <min-pool-size>2</min-pool-size> <max-pool-size>10</max-pool-size> </xa-pool> <security> <application/> </security> </connection-definition> </connection-definitions> </resource-adapter> </resource-adapters> </subsystem>
When you generate an application .ear file the JBoss Application Server requires that the .ear file contains deployment descriptors that specify deployment information about your application. When you use generate a client and EJB using the Interface Mapping Toolkit, these deployment descriptors are automatically created and packaged into the .ear.
If the application being deployed connects to a third-party database, you need to configure a JDBC data source and specify information such as the JNDI name of the data source.
For full details see the JBoss administration documentation on configuring JDBC data sources.
For further information, see the Release Notes for your JBoss Application Server installation and the JBoss Web site.