126 Using IBM WebSphere Message Broker as an ESB with WebSphere Process Server
Complete the fields as follows:
a. In the Name field, type JMSPROVIDERS.
This is the name of the resource manager instance. The name must be
unique within one queue manager stanza.
b. For SwitchFile, type WebSphere Message Broker Install
DirectoryMQSI6.0inJMSSwitch.dll
On distributed platforms, an additional component, called the
switch file, is
needed for global transactions. The switch file contains the XA switch
structure of the resource manager. The switch file is a shared library (a
dynamic link library (DLL) on Windows). The SwitchFile setting defines the
path to the JMSSwitch library that is supplied in the bin directory of the
broker.
When the broker’s WebSphere MQ queue manager starts, it loads this
switch file. The switch file forwards XA/Open transaction calls from the
syncpoint coordinator to the JMS provider. (The broker’s queue manager
acts as the syncpoint coordinator in our scenario.) This ensures that the
JMS resources that participate in the transaction can be coordinated in
synchronization with other resource managers that are involved in the
same transaction.
c. For XAOpenString, type com.sun.jndi.fscontext.
RefFSContextFactory,file:/C:/JNDI-Directory.
You enter a string of data that WebSphere MQ passes in its calls to the
resource manager's xa_open function. WebSphere MQ and the queue
manager call the xa_open function when the queue manager starts and
when you make the first call to MQBEGIN in your WebSphere MQ
application process. In this example, a file-based initial context factory has
been used for WebSphere MQ JMS provider.
The XAOpenString parameters are specified as:
Initial_Context,Location_JNDI,Optional_Parms
The values for XAOpenString are as follows:
• Initial Context is the value that is set in the JMSInput node basic
property Initial Context Factory.
• Location JNDI is the value that is set in the JMSInput node basic
property Location of JNDI. This value should include the leading
keyword, such as file:/, iiop:/, or ldap:/.
Important: The values for the Initial Context factory and Location of
JNDI bindings in the stanza must match those specified in the
JMSInput or JMSOutput nodes in the message flows.