aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Configure a  Bridge between Websphere MQ 6.0(Previously MQSeries) and Weblogic 9.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Configure a  Bridge between Websphere MQ 6.0(Previously MQSeries) and Weblogic 9.2" Watch "Configure a  Bridge between Websphere MQ 6.0(Previously MQSeries) and Weblogic 9.2" New topic
Author

Configure a Bridge between Websphere MQ 6.0(Previously MQSeries) and Weblogic 9.2

Raju Nagaraj
Greenhorn

Joined: Apr 03, 2009
Posts: 5
Bridge between Websphere MQ 6.0(Previously MQSeries) and Weblogic 9.2

At Websphere MQ 6.0 side:

 Create a folder by the name JNDI-Directory under C drive
 Create the queue manager by using the command at the command prompt:
crtmqm testqmgr or you can create it by GUI also.
 Start the queue manager: strmqm testqmgr. or you can start it by GUI also
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.

 Create a file by the name MyAdmin.config,It’s 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

Without the above step also you can do that. How it means
You have a file called JMSAdmin.config under C:\Program Files\IBM\WebSphere MQ\Java\bin directory.jsut uncomment the above mentioned 3 properties and comment the remaing that’s it.

Next run the below command
C:\Program Files\IBM\WebSphere MQ\Java\bin>JMSAdmin.bat –cfg MyAdmin.config

Once you run the above command you will see
this prompt InitCtx>.
Now your command prompt will stop at

InitCtx>

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 cration process




At Weblogic 9.2 side:

Go to your domain location lib folder i.e. In my system it’s in C:\bea\user_projects\domains\bplus_domain\lib. Add the following jars in lib folder

1) com.ibm.mq.jar
2) com.ibm.mqjms.jar
3) commonservices.jar
4) connector.jar
5) dhbcore.jar
6) fscontext.jar
7) jms.jar
8) jta.jar
9) ldap.jar
10) postcard.jar
11) providerutil.jar

Now restart the weblogic server. now the server reads all the jars

Open console of weblogic9

Go to ServicesMessagingBridgesJms bridge destination. under this create new
jms bridge destination.
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>

Now activate the changes what you have made

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>


Now configure a new Bridge by using above configured two source and destination
jms bridge destinations

At source you have to select Other JMS.don’t select Weblogic7 or Higher because the source of this bridge is WebsphreMQ, not weblogic

Now once again RESTART The weblogic9.2 serever and put one message on WebsphreMq queue and check whether it reaches the destination queue of weblogic


Enjoy the session
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Configure a Bridge between Websphere MQ 6.0(Previously MQSeries) and Weblogic 9.2