Re: Subscribe + Client aknowledge problem

2009-04-27 Thread dlindquist
liquidd wrote: > > 3. Sending 1 incorrect messages. > 4. Consumer doesn't aknowledge them and continuing listen for other > message. (ActiveMQ keeps incorrect message). > And here problem: > 5. Sending 1 correct message. > 6. Consumer successfully reads 1 message and 1 times acknowledges. > 7. I

Re: Subscribe + Client aknowledge problem

2009-04-13 Thread liquidd
I found it!! ActiveMQSession.INDIVIDUAL_ACKNOWLEDGE Doctor, you are genious! Thanks! -- View this message in context: http://www.nabble.com/Subscribe-%2B-Client-aknowledge-problem-tp23020938p23021595.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Subscribe + Client aknowledge problem

2009-04-13 Thread liquidd
Ok, here what I read about receive(); "The standard behavior of this method is to cause the session to acknowledge all messages that have been consumed by any consumer in the session since the last time the method was invoked." So how can I aknowledge only one message? Does using com.sun.messagi

Re: Subscribe + Client aknowledge problem

2009-04-13 Thread liquidd
My code: QueueConnection s_queueConnection = s_connectionFactory.createQueueConnection(); Session m_queueSessionConsume = s_queueConnection.createQueueSession(false, Session.CLIENT_ACKNOWLEDGE); Queue m_queue = m_queueSessionConsume.createQueue("MyQueue"); m_queueReceiver = m_queueSessionConsume

Subscribe + Client aknowledge problem

2009-04-13 Thread liquidd
I have a queue, I have a producer that sends messages to it, And I have a consumer that synchronously reads messages (by MessageConsumer.receive()) and acknowledges it if message is correct (my own validation), then going to listen next messages. If it is not correct, then it doesn't call aknowled