• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic