Prerequisite Software

To successfully deploy and access a Java service, you must have both the Java Development Kit (JDK) and a Java application server installed. This tutorial provides instructions for using the JBoss version 5.1 application server. Therefore, to complete the tutorial successfully, you must install and configure the JDK and JBoss software as follows:

JDK 1.6 or later
After installation, set your system path statement to include the path to your JDK installation's bin directory. For example:

set path=c:\program files\java\jdk1.6\bin;%path%

JBOSS 5.1
Using any text editor, edit the following JBOSS files as specified here:
run.bat
Located in your JBoss installation's bin directory.

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

jboss-service.xml
Located in your JBoss installation's server\default\conf directory.

Set the CallByValue attribute to true:

<attribute name="CallByValue">true</attribute>

war-deployers-jboss-beans.xml
Located in your JBoss installation's server\default\deployers\jbossweb.deployer\META-INF directory.

Set the java2ClassLoadingCompliance property to true:

<property name="java2ClassLoadingCompliance">true</property>

ear-deployer-jboss-beans.xml
Located in your JBoss installation's server\default\deployers directory.

Set the Isolated property to false:

<property name="Isolated">false</property>

Set the CallByValue property to true:

<property name="CallByValue">true</property>