# Adding additional parameters to jms .yml file

**URL:** <https://discuss.elastic.co/t/adding-additional-parameters-to-jms-yml-file/184348>\
**Category:** Logstash\
**Created:** [June 5, 2019, 12:00pm UTC](https://discuss.elastic.co/t/adding-additional-parameters-to-jms-yml-file/184348 "2019-06-05T12:00:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karolsputo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karolsputo/32/41220_2.png) [@karolsputo](https://discuss.elastic.co/u/karolsputo)\
**Post date:** [June 5, 2019, 12:00pm UTC](https://discuss.elastic.co/t/adding-additional-parameters-to-jms-yml-file/184348/1 "2019-06-05T12:00:10Z")

</div>

Hi,

I'm trying to access Solace from Logstash. I've set up a connection, but on Solace side I see that I'm connecting to the wrong VPN (default one). To establish a working connection I need to pass additional parameter with name Solace\_JMS\_VPN with a specific value (I know this value).

How and where can I do that? I tried passing it in :jndi\_context and on the same level as :host and other parameters, without success.

My configuration:

```
solace:
  :host: <host>
  :port: <port>
  :username: <usr>
  :password: <pwd>
  :jndi_name: <name>
  :factory: <myFactory>
  :channel: <queue>
  #:transport_type: 1
  :jndi_context:
     Solace_JMS_VPN: <myCustomValue>
     java.naming.factory.initial: <myFactory>
     java.naming.provider.url: <host>:<port>
     java.naming.security.principal: <usr>
     java.naming.security.credentials: <pwd>
  :require_jars:
    (...)

jms {
  yaml_section => "solace"
  include_header => true
  include_properties => false
  include_body => true
  use_jms_timestamp => false
  yaml_file => "<path_to_yml>"
  destination => "queue"
}
```

---

<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:** [July 3, 2019, 12:00pm UTC](https://discuss.elastic.co/t/adding-additional-parameters-to-jms-yml-file/184348/2 "2019-07-03T12:00:12Z")

</div>

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