# Logstash-input-jms \[CLIENT\_ACKNOWLEDGE\]

**URL:** <https://discuss.elastic.co/t/logstash-input-jms-client-acknowledge/94292>\
**Category:** Logstash\
**Created:** [July 24, 2017, 9:30am UTC](https://discuss.elastic.co/t/logstash-input-jms-client-acknowledge/94292 "2017-07-24T09:30:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![R-Ali](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@R-Ali](https://discuss.elastic.co/u/R-Ali)\
**Post date:** [July 24, 2017, 9:30am UTC](https://discuss.elastic.co/t/logstash-input-jms-client-acknowledge/94292/1 "2017-07-24T09:30:19Z")

</div>

Hello,

I'm using the plugin logstash input jms.  
I modified the jruby-jms-1.2.0-java library ( I modified acknowledgment mode )  
JMS::Session::AUTO\_ACKNOWLEDGE TO JMS::Session::CLIENT\_ACKNOWLEDGE

> # options: any of the JMS::Session constants:
> 
> ```
> # Note: :options are ignored if transacted: true
> # JMS::Session::AUTO_ACKNOWLEDGE
> # With this acknowledgment mode, the session automatically acknowledges
> # a client's receipt of a message either when the session has successfully
> # returned from a call to receive or when the message listener the session has
> # called to process the message successfully returns.
> # JMS::Session::CLIENT_ACKNOWLEDGE
> # With this acknowledgment mode, the client acknowledges a consumed
> # message by calling the message's acknowledge method.
> # JMS::Session::DUPS_OK_ACKNOWLEDGE
> # This acknowledgment mode instructs the session to lazily acknowledge
> # the delivery of messages.
> # JMS::Session::SESSION_TRANSACTED
> # This value is returned from the method getAcknowledgeMode if the
> # session is transacted.
> # Default: JMS::Session::AUTO_ACKNOWLEDGE
> 
> ```

I use an output elasticsearch.  
I want to retrieve the response of the output elasticsearch in my code input jms to call message's acknowledge method.

Is there a global variable that allows me to do that?  
Or a way to communicate input and output?

Thank you in advance

Ali

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 21, 2017, 9:30am UTC](https://discuss.elastic.co/t/logstash-input-jms-client-acknowledge/94292/2 "2017-08-21T09:30:33Z")

</div>

Closed on August 21, 2017, 9:30am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
