ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Do we need Message Broker for JMS PubSub?

Post new topic  Reply to topic
 Do we need Message Broker for JMS PubSub? « View previous topic :: View next topic » 
Author Message
mq_2020
PostPosted: Thu Oct 28, 2010 7:28 am    Post subject: Do we need Message Broker for JMS PubSub? Reply with quote

Novice

Joined: 28 Oct 2010
Posts: 20

This is regarding Pub/Sub implementation query.
Generally pub/sub design is mixed with following concepts..
1. MQSeries Pub/Sub (MA0C) Or MQ7- we can use the JAVA or JMS (point to point) API's to test this.
2. MQSI or WMB pub/sub - we can use broker message flows/java programs/rfh2util (subscription) to test this. (need to use the rfh2 header)
3. JMS pub/sub - ?????

For JMS pub/sub,
Do we need to use MQSI or WMB?
Is there any possibility to set up the rfh2 header using JMS API?
Can JMS connect directly to MQ without using the JNDI NAMESPACE?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Oct 28, 2010 7:40 am    Post subject: Re: Do we need Message Broker for JMS PubSub? Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

mq_2020 wrote:
This is regarding Pub/Sub implementation query.
Generally pub/sub design is mixed with following concepts..
1. MQSeries Pub/Sub (MA0C) Or MQ7- we can use the JAVA or JMS (point to point) API's to test this.
2. MQSI or WMB pub/sub - we can use broker message flows/java programs/rfh2util (subscription) to test this. (need to use the rfh2 header)
3. JMS pub/sub - ?????

For JMS pub/sub,
Do we need to use MQSI or WMB?
Is there any possibility to set up the rfh2 header using JMS API?
Can JMS connect directly to MQ without using the JNDI NAMESPACE?


JMS pub/sub is not coupled to either WMQ or WMB.
It is coupled to your implementation.
WMQ is pub/sub JMS capable and the preferred provider for JMS-pub/sub in V7.

You can use either WMQ or WMB as JMS pub/sub engine... for versions < V7.

Read up some and you will get a better understanding of what you are really asking.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mq_2020
PostPosted: Thu Oct 28, 2010 8:42 am    Post subject: Reply with quote

Novice

Joined: 28 Oct 2010
Posts: 20

Any suggested to material to understand this?
Also ...How do i implement the JMSpubsub using WMB?

Here is my thinking...
JMS app sends the message to WMQ (via accesss the JNDI namespace (QCF, TCF & T)
Register the topic in the broker with ACL etc...
Broker flow picks up the message from queue and publishes it using message flow (simple MF with MQInputNod/ Publication Node)
if publish topic is matches then message will be passed to subscription queue.

The above situation, message flow expects the rfh2 header to publish the message?
Is it JMS app can set rfh2 header before sending the message to WMQ ?
Is it subscription queue has to be SYSTEM.JMS* queue or any user defined formatted queue?

May be these are basics...but i would appreciate if some one clarify the above..

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Oct 28, 2010 9:06 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mq_2020 wrote:
Any suggested to material to understand this?


The publish / subscribe manual would be a good place to start.

mq_2020 wrote:
Also ...How do i implement the JMSpubsub using WMB?


Under v7 you can't - WMB uses WMQ's pub/sub.

mq_2020 wrote:
Here is my thinking...
JMS app sends the message to WMQ (via accesss the JNDI namespace (QCF, TCF & T)
Register the topic in the broker with ACL etc...
Broker flow picks up the message from queue and publishes it using message flow (simple MF with MQInputNod/ Publication Node)
if publish topic is matches then message will be passed to subscription queue.


No, not really.

mq_2020 wrote:
The above situation, message flow expects the rfh2 header to publish the message?


Maybe

mq_2020 wrote:
Is it JMS app can set rfh2 header before sending the message to WMQ ?


It takes deliberate effort to write a JMS app that doesn't set an RFH2 header.

mq_2020 wrote:
Is it subscription queue has to be SYSTEM.JMS* queue or any user defined formatted queue?


As per the documentation.

mq_2020 wrote:
May be these are basics...but i would appreciate if some one clarify the above..


We're not set up to be a training resource. Read the manual, set up a little test scenario and come back with any specfic questions you have.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Oct 28, 2010 10:32 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

You can also switch WMB 6.1 (and should) to use the WMQ v7 pub sub engine.
Back to top
View user's profile Send private message
mq_2020
PostPosted: Thu Oct 28, 2010 2:04 pm    Post subject: Reply with quote

Novice

Joined: 28 Oct 2010
Posts: 20

Code:

No, not really.

I have tested same design using the JAVA API.
Basically Java standalone program which sends message with publish header (rfh2) to WMQ.
Broker message flow from the queue and publishes the messages.
If topic matches then messages will be delivered to the subscription queue.

Any hints from others ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Do we need Message Broker for JMS PubSub?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.