Skip to content

Session aware for Queue #246

Description

@mbryzhko

There is question around session awareness for queue.

I would like to clarify if java sdk supports following scenario:
(Conditions: many clients and many services and one queue)

  1. client sends a message to a service via queue
  2. service receives it and process
  3. then service replies to a client and sends response message via queue
  4. client is listening for response. One it arrives, client processes it.

As far as I understand that this can be achieved with session aware queues.

A queue can be created with property setRequiresSession(true). Then a client specifies a session id for request message setSessionId(...). A Service should specify replay to session id property in response message setReplyToSessionId(...).

I though that this should guaranty that a client will receive that response message which was sent with corresponded session id from service.

But I can see different behavior in my application. That a message is delivered to any client .

Does this scenario not supported. Or I missed something to do? Any existing examples?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions