Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Option 1:</strong></p> <p>You have to lookup from a remote JNDI.</p> <p>I'm not sure ATM how to specifying jndiProps.setProperty(Context.PROVIDER_URL, "127.0.0.1:4447"); in one of the JNDI Properties.</p> <p><strong>Option 2:</strong></p> <p>you could create a local Pooled connection factory bound to the remote server:</p> <p>First specify a connector:</p> <pre><code>&lt;connectors&gt; &lt;netty-connector name="remote-jms" socket-binding="messaging-remote"/&gt; ... &lt;/connectors&gt; </code></pre> <p>And also specify the socket binding:</p> <pre><code>&lt;socket-binding-group ....&gt; .... &lt;outbound-socket-binding name="remote-jms"&gt; &lt;remote-destination host="other-hos" port="5445"/&gt; &lt;/outbound-socket-binding&gt; &lt;/socket-binding-group&gt; </code></pre> <p>And then specify the pooled connection factory that will be connected remotely.</p> <pre><code>&lt;pooled-connection-factory name="ConnectionFactory1"&gt; &lt;user&gt;jmsuser&lt;/user&gt; &lt;password&gt;jmspassword&lt;/password&gt; &lt;connectors&gt; &lt;connector-ref connector-name="remote-jms" /&gt; &lt;/connectors&gt; &lt;entries&gt; &lt;entry name="java:/ConnectionFactory1" /&gt; &lt;/entries&gt; &lt;/pooled-connection-factory&gt; </code></pre> <p><strong>Option 3:</strong></p> <p>Create the connection factory without using JNDI. Notice that you will perform a network call every time you connect. the best would be to pool a connection:</p> <p><a href="http://docs.jboss.org/hornetq/2.3.0.Final/docs/user-manual/html/using-jms.html#d0e1361" rel="nofollow">http://docs.jboss.org/hornetq/2.3.0.Final/docs/user-manual/html/using-jms.html#d0e1361</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload