s/Session.AUTO_ACKNOWLEDGE/Session.CLIENT_ACKNOWLEDGE/

and call javax.jms.Message#acknowledge when you are done with a received message

On 24 April 2014 10:25, meurwinn <meurw...@gmail.com> wrote:
> Hi, not shure to understand what you mean.
> In my client code to consume the messages, i have :
>
> /ActiveMQConnectionFactory factory = new
> ActiveMQConnectionFactory(serverUrl);
> connection = factory.createTopicConnection(userName, password);
> session = ((TopicConnection) connection).createTopicSession(false,
> Session.AUTO_ACKNOWLEDGE);
> Topic topic = session.createTopic(queueOrTopicName);
> publisher = ((TopicSession) session).createPublisher(topic);
> publisher.setDeliveryMode(DeliveryMode.PERSISTENT);/
> gtully wrote
>> Use client ack mode?
>> On 24 Apr 2014 09:36, "meurwinn" &lt;
>
>> meurwinn@
>
>> &gt; wrote:
>>
>>> Up,
>>> any idea about how to process ? Or any explain.
>>> I can't find any documentation about the way to follow...
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://activemq.2283324.n4.nabble.com/INDIVIDUAL-ACKNOWLEDGE-with-a-durable-consumer-tp4680403p4680505.html
>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>
>
>
>
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/INDIVIDUAL-ACKNOWLEDGE-with-a-durable-consumer-tp4680403p4680507.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://redhat.com
http://blog.garytully.com

Reply via email to