Before you start:
If you are running the sample on Linux you must complete the following steps:
<mq_install_directory>/java/lib/com.ibm.mqjms.jar
<JAVA_HOME>/bin
The following instructions assume that WebSphere MQ is installed in the mq_install_dir directory. The JMSAdmin tool and JMSAdmin configuration file are in the following locations:
In the SOAP Nodes Sample Flow project, you must use the SOAPJMSSample.defs file with the JMSAdmin tool.
Before you can use the JMSAdmin tool, you must modify the JMSAdmin.config file.
To modify the JMSAdmin.config file:
# The following line specifies which JNDI service provider is in use. # It currently indicates a File System Context. If a different # service provider is used, this line must be commented out, and the # appropriate one must be uncommented. # # com.sun.jndi.fscontext.RefFSContextFactory is the FileSystem JNDI Context # #INITIAL_CONTEXT_FACTORY=com.sun.jndi.ldap.LdapCtxFactory INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory #INITIAL_CONTEXT_FACTORY=com.ibm.ejs.ns.jndi.CNInitialContextFactory #INITIAL_CONTEXT_FACTORY=com.ibm.websphere.naming.WsnInitialContextFactory # # The following line specifies the URL of the initial context # for the service provider. It currently refers to a File System Context. # Examples of an LDAP root context URL and the JNDI namespace for WebSphere # are also shown, commented out. # #PROVIDER_URL=ldap://localhost/o=ibm,c=us PROVIDER_URL=file:/C:/SOAPJNDIBindings #PROVIDER_URL=iiop://localhost/
Ensure that INITIAL_CONTEXT_FACTORY is set to com.sun.jndi.fscontext.RefFSContextFactory.
Now you can create the objects.
By running the WebSphere MQ JMSAdmin tool, you create the JNDI administered objects to configure the JMS Connection Factories and Destinations that are used in the sample.
You create the objects by running JMSAdmin tool and by using the SOAPJMSSample.defs file as input.
On the command line, enter the following commands:
cd mq_install_dir\bin setmqenv -p "mq_install_dir" cd mq_install_dir\java\bin JMSAdmin < "workspace_path\SOAPNodesSampleFlows\SOAPJMSSample.defs"
cd mq_install_dir/java/bin . ./setjmsenv ./JMSAdmin < workspace_path/SOAPNodesSampleFlows/SOAPJMSSample.defs
Where WebSphere MQ is installed in the following location: mq_install_dir, and workspace_path is the full path to the IBM Integration Toolkit workspace directory.
The objects and the .bindings file are created.
SOAP nodes are already configured with the location of the .bindings file. However, if you have created a .bindings file in a different location, you must reconfigure the SOAP nodes with the different location of the .bindings file. Complete the steps in the following section: "Configuring the SOAP nodes with the location of the .bindings file".
To ensure that the SOAP nodes in the message flows know the location of the .bindings file that you created, use the steps in the following section: "Configuring the SOAP nodes with the location of the .bindings file".
To deploy the modified SOAPNodesSampleConsumer and SOAPNodesSampleProvider flows, rebuild a broker archive (BAR) file that contains both message flows.
Build the BAR file:
You can now run the sample, see Running the SOAP Nodes sample. You can use the same Flow Test because the client flow is driven by a WebSphere MQ queue.