• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS Topic with high availability for the client?

 
Bal Mark
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

Can anyone help me, I'm looking to find out if this is possible.

Can I have a client app, listening on a JMS topic, so that the client app can be setup in some way with some high availability?

The scenario..

I am producing messages and publishing them on a topic, from here, I have a few applications listening and actioning based on the message which is all good.
This message is a status message that multiple applications need to work with, so a topic is the proper message type here.

Now.. the problem

I have an application listening to this topic.. but I can't see a way to make this highly available.. if I have multiple instances of this application, they'll both be reading the same message since they'd be reading from the same topic.. (eg. If I've jboss instances on 2 seperate machines with an MDB running off the topic.. if instance 1 goes down, I need instance 2 to be able to take over or have both doing some round robin.. I know this is what a queue is for, but its a topic I have to work with for the initial listener.. )

Basically, as it is, this is a single point of failure for me.. Is there any way to have High Availability on the client, when working with a 'Topic' ?

Help me please! ;)

Bal
 
ramprasad madathil
Ranch Hand
Posts: 489
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please mention when you are cross-posting to other forums. A solution for this is outlined here in the oracle java/jms forum.

cheers,
ram.
 
Bal Mark
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ram

About cross-posting, sorry, but in my defense, I posted here first if you notice.. There wasn't much activity in this forum looking at the thread dates and responses to them, so it seemed, if I wanted an answer, I'd have to ask elsewhere (or look myself which I had been doing). I wasn't all that hopeful of any activity in here after I noticed the timstamps on the other threads.

I didn't think it was an issue, and regardless of where the solution was found, I'd have linked it back here, I generally do.

While the solution in the http://forums.oracle.com/forums/thread.jspa?threadID=2113138&tstart=0 thread will hopefully work
I had also posted on http://community.jboss.org/thread/158355?tstart=0 with the same question.

I have a few options now I can try work with, my single point of failure was getting the topic messages and distributing them.. I can use a glassfish app server and glassfish MQ, or clustered jboss deployments with the jbossmq, these are more options than I had before.. before, I didnt know there was any route I could take that wouldn't just waste time.

Thanks,

Bal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!