Author |
Message
|
tcganesh |
Posted: Mon Nov 18, 2002 12:31 pm Post subject: MQSeries Queue Access by JMS Topic using MDBs |
|
|
 Novice
Joined: 12 Sep 2002 Posts: 13 Location: New York
|
I understand MQ Queues can be accesses by JMS APIs.
I understand concept of Topic and JMS components in J2EE.
I am using weblogic 7.0. I need some help in linking Topic to the MQ Queue manager and Queue.
I would greatly appreciate your help guys. _________________ Thanks,
Ganesh C |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Nov 19, 2002 11:55 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
With MQ's JMSAdmin, you define a TCF that points to the MQSeries qmgr that you are going to use:
Code: |
def tcf(myTCF) qmgr(my.qmgr)
|
This will define a TCF that will point to the qmgr and it will also tell MQSeries what to use for the queues for publishing/subscribing. You will also define topics that you will be publishing/subscribing to:
Code: |
def t(soccer) topic(Sport/Soccer/*)
def t(soccer.latest) topic(Sport/Soccer/Event)
|
The actual queues that JMS will need for publishing/subscribing are created by using the MQJMS_PSQ.mqsc file:
Code: |
runmqsc my.qmgr < c:\MQSeries\Java\bin\MQJMS_PSQ.mqsc
|
This is very high-level. Did you have a specific question? |
|
Back to top |
|
 |
tcganesh |
Posted: Wed Nov 20, 2002 8:24 am Post subject: JMS and MDBs |
|
|
 Novice
Joined: 12 Sep 2002 Posts: 13 Location: New York
|
Thanks a Lot.
This really helps me understand connection betn JMS and MQ.
I am trying implement Message Driven Bean to access MQ Queue once a message arrives using MDBs onMessage method. Does this need a different config or the same you mentioned work.
Recommend me if any document explains these specifics. _________________ Thanks,
Ganesh C |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Nov 20, 2002 10:25 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
With WebSphere App Server Enterprise Edition, there are some samples and instructions on what to do. On my system, they are in:
C:\WebSphere\AppServer\Enterprise\samples\messaging\MessagingIntro.html
It takes a couple of hours to walk through the instructions setting things up to run. |
|
Back to top |
|
 |
udaybho |
Posted: Fri Nov 22, 2002 1:00 pm Post subject: |
|
|
Voyager
Joined: 09 May 2002 Posts: 94 Location: Chicago
|
Once you define your Queue and QCF using JMS Admin tool you had established an interface between your App server and MQ series. Now you are free to use JMS/MDB. You have to follow JMS/MDB spec for more details.
Remember MQ provides you messaging framework. In your case you are using MQ Messaging framework insted of Weblogic internal Messaging framework. I am assuming you have 6.0+ weblogic appserver.
Uday Bhosle |
|
Back to top |
|
 |
|