Sterling Managed File Transfer

Sterling Managed File Transfer

Come for answers, stay for best practices. All we're missing is you.

 View Only

Configuring JMS11 adapter in Sterling B2B Integrator to connect to WSMQ server

By Tanvi Kakodkar posted Mon January 27, 2020 03:27 PM

  
Originally updated on February 10, 2015 by Swaroopa(swars)


Configuring JMS11 adapter in Sterling B2B Integrator  to connect to WSMQ server

To  connect the JMS adapter with WSMQ, we need to first create JMS Administered objects on the WSMQ server and then provide the corresponding details in the JMS Adapter. This can be done using FileSystem context,LDAP Server and the more generic JNDI context. In the below article I have described usage of FileSystem and JNDI Context.

Creation of JMS Adminstered objects on WSMQ using FileSystemContext:
1.Open WSMQ Explorer and in the Navigator on the left hand side select “JMS Adminstered Objects”.
2.Right click and select “Add Initial Context...”, in the pop-up select the “File System” radio button.
3.Browse and select a folder as the Bindings Directory (The bindings file will be created in this directory) and then click on finish


4.Expand the newly added context factory to create new “ConnectionFactory” and “Queue/Topic” objects as described below. 

4a. Creating  a new “Connection Factory”, choose below options for default values 

Name Name you intended
Type Connection Factory
Transport  MQ Client
Connection -> Base Queue Manager
Queue manager which has the channel and the  queue/topic Objects. These queue manager will internally be used by the JMS administered  object for sending/receiving messages.
 
Connection ->Connection List  IP of the machine where your WSMQ is installed 
Channels-> Channel server-connection-channel
 

Snap shot of sample connection factories created.


4b. Creating a new Destination 

Name Name you intended
Type Queue/Topic
General->Queue Manager  Name of QM we used while creating Connection Factory
Queue  Any Queue which is under queue manager we configured 


Snap shot of sample destinations created.


5.Now go to the directory, which was selected as the bindings directory while creating the “Initial Context”, this folder will contain the bindings file. Edit this file and replace all occurrences of localhost with the IP address of the machine which hosts the WSMQ server.

6. Copy this .bindings file to the machine were SI is installed

7. Copy this .bindings file to the machine were SI is installed

 

Configure  JMS11 Adapter with FileSystem Context on Sterling B2B Integrator 

1. Go to Deployment -> Services -> Configuration -> Choose JMS 11 Acquire Connection Service 

Pool Name JMS 11 Acquire Connection (Any pool you intended to use)
Context Factory  com.sun.jndi.fscontext.RefFSContextFactory
URL file:///<path of the folder where the bindings file is copied into>
Destination Type Queue /Topic
Connection Factory  Name of the Connection Factory we created on WSMQ
Connections Username user who is in the mqm user group in the connection username/password field
Connections Password password
 

Snapshot of the Adapter 

 

You can also configure the JMS11 Async receive adapter in a similar way. When you have configured the JMS11 Acquire connection service, it can then be used in a business process(BP), along with the other JMS11 services to send/receive messages

 

#IBMSterlingB2BIntegratorandIBMSterlingFileGatewayDevelopers
#DataExchange
0 comments
11 views

Permalink