You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by oBanawalikar <om...@siemens.com> on 2012/03/29 11:23:23 UTC
Acknowledgement from consumer
I would like to know the various ways by which we can acknowledge individual
messages received by the consumer.
the one which people generally use is, we set the ActiveMQSession as
INDIVIDUAL_ACKNOWLEDGE, then we can send individual acknowledgment using
message.acknowledge() method.
But i was wondering whether it is possible to send a the JMSCorrelationID of
the message to some queue in the broker as a acknowledgment to the broker??
In this way I don't need the entire message object to be stored for
acknowledgement, when it is possible using only the JMSCorrelationID.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Acknowledgement-from-consumer-tp4514900p4514900.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Acknowledgement from consumer
Posted by oBanawalikar <om...@siemens.com>.
Hey Torsten,
what do you mean by control over acknowledge??
The reason I m asking questions related to acknowledgment from consumer, is
that i want to only acknowledge messages after they have been processed by
some processing engine. I can only send the messages to the engine using a
Adapter??
Currently I am storing each message in a adapter till the processing engine
gives me a acknowledgment of some sort saying the messages has been
processed. But this takes up lot of space on the Adapter for storing each
message??
--
View this message in context: http://activemq.2283324.n4.nabble.com/Acknowledgement-from-consumer-tp4514900p4518092.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Acknowledgement from consumer
Posted by Torsten Mielke <to...@fusesource.com>.
Hi,
> But i was wondering whether it is possible to send a the JMSCorrelationID of
> the message to some queue in the broker as a acknowledgment to the broker??
No, that's no possible.
If you want to have control over the acks you should either use CLIENT_ACK mode or JMS transactions.
Torsten Mielke
torsten@fusesource.com
tmielke@blogspot.com
On Mar 29, 2012, at 11:23 AM, oBanawalikar wrote:
> I would like to know the various ways by which we can acknowledge individual
> messages received by the consumer.
> the one which people generally use is, we set the ActiveMQSession as
> INDIVIDUAL_ACKNOWLEDGE, then we can send individual acknowledgment using
> message.acknowledge() method.
> But i was wondering whether it is possible to send a the JMSCorrelationID of
> the message to some queue in the broker as a acknowledgment to the broker??
>
> In this way I don't need the entire message object to be stored for
> acknowledgement, when it is possible using only the JMSCorrelationID.
>