# Logstash JMS input connecting and disconnecting on and on

**URL:** <https://discuss.elastic.co/t/logstash-jms-input-connecting-and-disconnecting-on-and-on/116900>\
**Category:** Logstash\
**Created:** [January 24, 2018, 4:48pm UTC](https://discuss.elastic.co/t/logstash-jms-input-connecting-and-disconnecting-on-and-on/116900 "2018-01-24T16:48:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roblopes](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@roblopes](https://discuss.elastic.co/u/roblopes)\
**Post date:** [January 24, 2018, 4:48pm UTC](https://discuss.elastic.co/t/logstash-jms-input-connecting-and-disconnecting-on-and-on/116900/1 "2018-01-24T16:48:29Z")

</div>

Hi,

I am using Logstash v6 with the logstash-input-jms plugin, but I am using TIBCO EMS v7.0.

I was doing a POC in a windows environment, and everything is works fine there, but I am now moving the elasticsearch stack to a Linux cluster, and the connection to EMS is established, but after few seconds it is gone. After some time, I can see the ReceiverCount growing, but after few seconds it is gone again.

Does anybody has any idea what could it could be? Again, the same code works fine in the windows environment.

Here is the jms.yml configuration that I am using:  
ems:  
:username: myuser  
:password: mypassword  
:jndi\_name: ConnectionFactory  
:jndi\_context:  
java.naming.factory.initial: com.tibco.tibjms.naming.TibjmsInitialContextFactory  
java.naming.provider.url: tcp://emsn1:7222,tcp://emsn2:7222  
java.naming.security.principal: admin  
java.naming.security.credentials: admin  
:require\_jars:  
- /opt/logstash/logstash-6.0.1/config/instance\_config/jms.jar  
- /opt/logstash/logstash-6.0.1/config/instance\_config/tibjms.jar  
- /opt/logstash/logstash-6.0.1/config/instance\_config/tibcrypt.jar

Here is the input in the logstash config:

input {  
jms {  
destination =\> "myqueuetest.queue"  
include\_body =\> true  
include\_header =\> false  
include\_properties =\> false  
interval =\> 10  
timeout =\> -1  
threads =\> 20  
use\_jms\_timestamp =\> false  
yaml\_file =\> "/opt/logstash/logstash-6.0.1/config/instance\_config/jms.yml"  
yaml\_section =\> "ems"  
}  
}

Thanks,  
Rob

---

<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:** [February 21, 2018, 4:48pm UTC](https://discuss.elastic.co/t/logstash-jms-input-connecting-and-disconnecting-on-and-on/116900/2 "2018-02-21T16:48:52Z")

</div>

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