It's all about Weblogic..!!

June 22, 2010

Steps to create JMS Bridge between WLS and IBM Websphere MQ

Filed under: * JMS ( coming up shortly ) — streethawkz @ 10:30 am

Below are the steps to create JMS Bridge between WLS and IBM Websphere MQ :

.
The steps are related to my local settings,where I have my WLS and IBM websphere MQ Installed(doesnt matter if MQ is on a remote machine).
.
So kindly change accordingly to your setup.
.
1.Go to your IBM websphere MQ Install installation folder(C:\Program Files\IBM\WebSphere MQ)
.
2.Inside:C:\Program Files\IBM\WebSphere MQ  you will see java folder
.
3.copy the java folder to some other location eg D:\xxxx\Java
.
4.open JMSAdmin.config inside D:\xxxx\Java\bin
.
5.We have change two things here INITIAL_CONTEXT_FACTORY and PROVIDER_URL
I have set them to
INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
PROVIDER_URL=file:/C:/JNDI-Directory
dont forget to comment the other INITIAL_CONTEXT_FACTORY and PROVIDER_URL
.
6.Save the changes
.
7.Inside D:\xxxx\Java\bin you can find JMSAdmin.bat, start that
.
8.Type dis ctx, to check this there any Bindings
Initially you will not see anything here
MQ Configuration
.
9.Start–> All Programs –> IBM WebSphere MQ –> WebSphere MQ Explorer
.
10.Create QueueManager TESTQM (analogous to a JMS Server in WebLogic) , there will 4 steps, its straight forward to follow,Set the listener port.
By default MQ uses 1414 which can be overridden by user
.
11.After creating the Queue Manager (QM) verify if the QM is started (Green Up Arrow)
.
12.Now create the Queue TestQ. Right clicking on queue and New
.
13.Create a Server Connection Channel (the closest one in WebLogic JMS is Connection factory)
click on channels New, provide channel name
.
14.This finishes the configuration.
.
15. now got to JMSAdmin.bat window which you opened on step 7
.
16. type: define xaqcf(ConnFact) and give enter
.
17. again type : define q(JNDI) queue(Queue name)
.
19. Login to weblogic admin console
(I have given my config details you can manually created them from console)
.
20. create JMS server
JMSServer
AdminServer
.
21. create JMS Module
SystemModule
AdminServer
JMSServer
AdminServer
Queue
JMSServer
TestQ
JMSServer
jms/SystemModule-jms.xml
.
22. Create Bridge Destination
WLSDestination
eis.jms.WLSConnectionFactoryJNDIXA
ConnFact
t3://localhost:7001
QueueInnu
MQDestination
eis.jms.WLSConnectionFactoryJNDIXA
ConnFact
com.sun.jndi.fscontext.
RefFSContextFactory
file:/D:/Magesh/JDNI-Directory
Innu_Q
.
23. Create Bridge
Bridge-0
AdminServer
WLSDestination
MQDestination
Exactly-once
true
.
24.finally we need to add MQ jar files in WLs startup script
com.ibm.mq.fta.jar;com.ibm.mq.jar;com.ibm.mq.jms.Nojndi.jar;com.ibm.mqetclient.
jar;com.ibm.mqjms.jar;commonservices.jar;connector.jar;fscontext.jar;jms.jar;jndi.jar;jta.jar;
providerutil.jarrmm.jar;
You will find these jar’s inside  D:\xxxx\Java\lib
.
25. After these we are successfully created JMS bridge between WLS and IBM Websphere, you can test this by sending a message to WLS Queue, this message can also be view on IBM MQ.

1 Comment »

  1. Excellent goods from you, man. I’ve understand your stuff previous to andd you’re just too excellent.
    I really like what you’ve acquired here, certainly like what you’re saying
    and thee way in which you saay it. You make iit enjoyable
    and you still tale care off to kerep it wise.
    I can not wait to read much more from you.
    This is actually a terrific web site.

    Comment by Asterisk Setup Ubuntu — August 6, 2014 @ 2:54 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: