Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS Pub/Sub  RSS feed

 
Chris Rosenquest
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a publisher to a topic also be a subscriber to that topic? I cannot find anything that says this is not possible.

Thanks.
 
Manish M Malhotra M
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Ur Qs is.
"Can a publisher to a topic also be a subscriber to that topic? I cannot find anything that says this is not possible "

-- >>
I didnt get your question. Can you please explain so that I can help you out.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It probably is possible - I can't think of a technical reason that would stop it. It is however a pointless thing to do.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider a cluster or federation of servers. Any one of them could publish a message. All of them would be interested in receiving it.

Would you require each to publish on a different topic and subscribe to all the other topics in the cluster? I'd try to let all of them publish and subscribe to the same topic.
 
Chris Rosenquest
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stan James: We are considering that all apps pub/sub to the same topic due to them having the responsibility to manage a similar piece of data.
Since I posted I haven't found anything indicating it is impossible to allow an app to pub/sub to the same topic.

Paul Sturrock: Having an app pub/sub to the same Queue is pointless (unless there is an async process can be better handled by JMS instead of threading or another async process). I'm sure if you understood our environment a bit better you'd be able to make that statement with some backing. A debate for another time.

Thanks all for the responses. I appreciate the time you all took to reply.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!