Products | Versions |
---|---|
TIBCO Enterprise Message Service | - |
Not Applicable | - |
Resolution:
This can be achieved by changing the AUTO_ACKNOWLEDGE to CLIENT_ACKNOWLEDGE while creating the session
to receive the message. Please refer the sample program tibjmsDurableSubscriber.java which is located under
<EMS-HOME>/samples/java. In this sample code, the session was created with AUTO_ACKNOWLEDGE. so that, the session
automatically acknowledges a message when message processing is finished and messages will be removed from the
server. But if we set that as "CLIENT_CKNOWLEDGE", the session won't automatically acknowledge so the message will
be there in the server for other consumer. But till this connection is closed, it won't be released for other consumer.
By modifying the tibjmsDurableSubscriber.java, you should be able to achieve this.
If you need to do this in production environment, please test it in your test environment first.