Jump to content

Is is possible to receive the same massege on two clients


Vadim L

Recommended Posts

I faced odd behavior. We have one event producer and two clients. These two clients have different roles but must receive the same events (order does not matter) from the same queue.

And I faced that a message will be consumed by only one client.

Is is possible to receive the same massege on two clients

Link to comment
Share on other sites

  • 2 months later...

Hi Vlamm,

The two clients can receive the same event from a topic, not from a queue.

Here is a short description of those twodestination types;

Topic

In JMS a Topic implementspublish and subscribesemantics. When you publish a message it goes to all the subscribers who are interested.

Queue

A JMS Queue implementsload balancersemantics. A single message will be received by exactly one consumer.

Regards,

Eric

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...