Websphere MQ and Weblogic JMS queue integration through weblogic bridge
HI,
I am trying to create a webloIgic bridge between Websphere MQ 6.0 JMS queue *(Source)* and Weblogic 10.3 JMS queue *(Destination)*.
I have followed the process defined in the following link:
http://forums.sun.com/thread.jspa?threadID=5379254
MQ is setup in one m/c and weblogic server is in a different m/c. This URL says that the provider url for source will be file:/c:/JNDI-Directory. This location of the binding file of MQ is in the MQ server. I am not able to understand that how my weblogic server source queue will make the connection with this JMS queue in MQ server.
Initially I was getting the resourceNotFound exception.
After that I copied the binding file in my weblogic server under the same path. After this I am getting the resourceAllocationException. It is not able to start the connection. This is valid as it is assuming that MQ is in the same m/c.
Could you please let me know what should be the configuration to connect the MQ JMS queue from my Weblogic server.
Source of jms bridge destination:
Adapter JNDI Name: eis.jms.WLSConnectionFactofyNoTX
Classpath:<optional>
Connection URL: file:/C:/JNDI-Directory
Initial Context Factory: com.sun.jndi.fscontext.RefFSContextFactory
Connection Factory JNDI Name: SenderQCF
Destination JNDI Name: MyMDBQueue
Destination Type:Queue
User Name: <optional>
User Password: <optional>
Confirm User Password: <optional>
Destination of jms bridge destination:
Destination of jms bridge destination:
Adapter JNDI Name: eis.jms.WLSConnectionFactofyNoTX
Classpath: < optional>
Connection URL: t3://localhost:7001
Initial Context Factory: weblogic.jndi.WLInitialContextFactory
Connection Factory JNDI Name: ConnectionFactory1
Destination JNDI Name: ResponseQueue
Destination Type:Queue
User Name: < optional>
User Password: < optional>
Confirm User Password: < optional>
All required JAR files are in PATH and CLASSPATH of weblogic.
MQ setup is as follows:
1. Create a folder by the name JNDI-Directory under C drive
2. Create the queue manager by using the command at the command prompt:
crtmqm testqmgr or you can create it by GUI also.
3. Start the queue manager: strmqm testqmgr. or you can start it by GUI also.
4. Define Local Queues in the newly created queue manager testqmgr by using GUI or by using Commands.
Assume we have created a local queue by the name MyMDBQueue.
5. Create a file by the name MyAdmin.config,It is a configuration file under C:\Program Files\IBM\WebSphere MQ\Java\bin directory.
Now add the following entries into the config file
INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
PROVIDER_URL=file:/C:/JNDI-Directory
SECURITY_AUTHENTICATION=none
6. Next run the below command
C:\Program Files\IBM\WebSphere MQ\Java\bin>JMSAdmin.bat -cfg MyAdmin.config
7. Once you run the above command you will see
this prompt InitCtx>.
Now your command prompt will stop at
InitCtx>
8. Just type the following commands
a) InitCtx> def xaqcf(SenderQCF) qmgr(testqmgr) press enter
b) InitCtx> def q(MyMDBQueue) qmgr(testqmgr) queue(MyMDBQueue) press enter
c) InitCtx> end press enter
At step a it will create a queue connection factory by the name SenderQCF UNDER QueueManager testqmgr
At step b it will create a queue by the name MyMDBQueue UNDER
QueueManager testqmgr
At step c Its ends the Context creation process
Please help.
Thanks in advance...
SD