[
https://issues.apache.org/jira/browse/CAMEL-23483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino reassigned CAMEL-23483:
----------------------------------------
Assignee: Andrea Cosentino
> camel-nats - Manual acknowledgement
> -----------------------------------
>
> Key: CAMEL-23483
> URL: https://issues.apache.org/jira/browse/CAMEL-23483
> Project: Camel
> Issue Type: Improvement
> Components: camel-nats
> Reporter: Michael Weiss
> Assignee: Andrea Cosentino
> Priority: Minor
>
> This Ticket was created out of this discussion [#camel > camel-nats - Manual
> ACK|https://camel.zulipchat.com/#narrow/channel/257298-camel/topic/camel-nats.20-.20Manual.20ACK/with/594226164]
> In Spring RabbitMQ there is a parameter `{{{}acknowledgeMode: MANUAL{}}}`
> which allows to manual ack or nack messages, which is actually not possiblem
> with camel-nats.
> With camel-nats, something like this should also be possible:
> {code:java}
> from("nats:mySubject?servers=localhost:4222&manualAck=true")
> .process(exchange -> {
> // do work
> doWork(exchange);
> // ACK after work succeeds
> NatsManualAck manualAck = exchange.getIn()
> .getHeader("CamelNatsManualAck", NatsManualAck.class);
> manualAck.ack();
> }); {code}
> With CAMEL-23032 the `{{{}ackPolicy{}}}` was introduced in camel-nats. Maybe
> we could add a manual mode there or create a new parameter.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)