dikkini
dikkini

Reputation: 1182

Weblogic JMS Queue in cluster with multiple instance of application

I have Weblogic and JMS Queue. Also i developing application which will be deployed to multiple servers (cluster), so there would be multiple instance of this application. Applications will listen JMS queue and do some stuff with messages.

My question is: When i send a message in JMS Queue, and application instance A take this message, will application instance B retrieve this message also? So i need that all my applications will receive message from JMS.

Upvotes: 2

Views: 995

Answers (1)

solar
solar

Reputation: 1364

When i send a message in JMS Queue, and application instance A take this message, will application instance B retrieve this message also? So i need that all my applications will receive message from JMS.

Depends on what JMS interface you're using: in case of Queue only one consumer will get the message, in case with using Topic you could deliver message to multiple subscribers. So, in your case you should choose Topic over Queue. Take a look at Oracle tutorial and also at this answer for more details.

Upvotes: 2

Related Questions