Which Ports Do I Need To Open For JBoss Messaging?
<p>I am running jboss eap 6.4 with the standalone.xml configuration.</p>

<p>However, there is a firewall between JBoss and the client. Which ports do I need to open in order to connect via a simple JMS client? </p>

<p>Just 4447? Or 5445 and 6745 as well?</p>

<p>What would the connection factory strings be to connect remotely? Can I just use <code>"jms/connectionFactory"</code> or should I be copying one of the strings in the standalone.xml?</p>

<p>The relevant sections of my standalone.xml are below.</p>

<pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;

&lt;server xmlns="urn:jboss:domain:1.7"&gt;
    &lt;profile&gt;

        &lt;subsystem xmlns="urn:jboss:domain:messaging:1.3"&gt;
            &lt;hornetq-server&gt;
                &lt;persistence-enabled&gt;true&lt;/persistence-enabled&gt;
                &lt;security-enabled&gt;false&lt;/security-enabled&gt;
                &lt;jmx-management-enabled&gt;true&lt;/jmx-management-enabled&gt;
                &lt;journal-file-size&gt;102400&lt;/journal-file-size&gt;
                &lt;journal-min-files&gt;2&lt;/journal-min-files&gt;
                &lt;connectors&gt;
                    &lt;connector name="first-jms-connector"&gt;
                        &lt;factory-class&gt;org.hornetq.core.remoting.impl.netty.NettyConnectorFactory&lt;/factory-class&gt;
                        &lt;param key="host" value="156.33.241.5"/&gt;
                        &lt;param key="port" value="5445"/&gt;
                    &lt;/connector&gt;
                    &lt;connector name="second-jms-connector"&gt;
                        &lt;factory-class&gt;org.hornetq.core.remoting.impl.netty.NettyConnectorFactory&lt;/factory-class&gt;
                        &lt;param key="host" value="156.33.241.5"/&gt;
                        &lt;param key="port" value="6745"/&gt;
                    &lt;/connector&gt;
                    &lt;netty-connector name="netty" socket-binding="messaging"/&gt;
                    &lt;in-vm-connector name="in-vm" server-id="0"/&gt;
                &lt;/connectors&gt;
                &lt;acceptors&gt;
                    &lt;netty-acceptor name="netty" socket-binding="messaging"/&gt;
                    &lt;in-vm-acceptor name="in-vm" server-id="0"/&gt;
                &lt;/acceptors&gt;
                &lt;security-settings&gt;
                    &lt;security-setting match="#"&gt;
                        &lt;permission type="send" roles="basic_user_role"/&gt;
                        &lt;permission type="consume" roles="basic_user_role"/&gt;
                        &lt;permission type="createNonDurableQueue" roles="basic_user_role"/&gt;
                        &lt;permission type="deleteNonDurableQueue" roles="basic_user_role"/&gt;
                        &lt;permission type="manage" roles="basic_user_role"/&gt;
                    &lt;/security-setting&gt;
                &lt;/security-settings&gt;
                &lt;address-settings&gt;
                    &lt;!-- first topic --&gt;
                    &lt;address-setting match="jms.topic.first"&gt;
                        &lt;dead-letter-address&gt;jms.queue.DLQ&lt;/dead-letter-address&gt;
                        &lt;expiry-address&gt;jms.queue.ExpiryQueue&lt;/expiry-address&gt;
                        &lt;redelivery-delay&gt;0&lt;/redelivery-delay&gt;
                        &lt;max-size-bytes&gt;250857600&lt;/max-size-bytes&gt;
                        &lt;page-size-bytes&gt;25085760&lt;/page-size-bytes&gt;
                        &lt;address-full-policy&gt;PAGE&lt;/address-full-policy&gt;
                        &lt;message-counter-history-day-limit&gt;10&lt;/message-counter-history-day-limit&gt;
                    &lt;/address-setting&gt;
                    &lt;!--default for catch all--&gt;
                    &lt;address-setting match="#"&gt;
                        &lt;dead-letter-address&gt;jms.queue.DLQ&lt;/dead-letter-address&gt;
                        &lt;expiry-address&gt;jms.queue.ExpiryQueue&lt;/expiry-address&gt;
                        &lt;redelivery-delay&gt;0&lt;/redelivery-delay&gt;
                        &lt;max-size-bytes&gt;10485760&lt;/max-size-bytes&gt;
                        &lt;page-size-bytes&gt;5048576&lt;/page-size-bytes&gt;
                        &lt;address-full-policy&gt;PAGE&lt;/address-full-policy&gt;
                        &lt;message-counter-history-day-limit&gt;10&lt;/message-counter-history-day-limit&gt;
                    &lt;/address-setting&gt;
                &lt;/address-settings&gt;
                &lt;jms-connection-factories&gt;
                    &lt;connection-factory name="InVmConnectionFactory"&gt;
                        &lt;connectors&gt;
                            &lt;connector-ref connector-name="in-vm"/&gt;
                        &lt;/connectors&gt;
                        &lt;entries&gt;
                            &lt;entry name="java:/ConnectionFactory"/&gt;
                            &lt;entry name="java:/first/jms/ConnectionFactory"/&gt;
                        &lt;/entries&gt;
                    &lt;/connection-factory&gt;
                    &lt;connection-factory name="RemoteConnectionFactory"&gt;
                        &lt;connectors&gt;
                            &lt;connector-ref connector-name="netty"/&gt;
                        &lt;/connectors&gt;
                        &lt;entries&gt;
                            &lt;entry name="RemoteConnectionFactory"/&gt;
                            &lt;entry name="java:jboss/exported/jms/connectionFactory"/&gt;
                        &lt;/entries&gt;
                    &lt;/connection-factory&gt;
                    &lt;pooled-connection-factory name="hornetq-ra"&gt;
                        &lt;transaction mode="none"/&gt;
                        &lt;connectors&gt;
                            &lt;connector-ref connector-name="in-vm"/&gt;
                        &lt;/connectors&gt;
                        &lt;entries&gt;
                            &lt;entry name="java:/JmsXA"/&gt;
                        &lt;/entries&gt;
                    &lt;/pooled-connection-factory&gt;
                &lt;/jms-connection-factories&gt;
                &lt;jms-destinations&gt;
                    &lt;jms-queue name="SecondQueue"&gt;
                        &lt;entry name="queue/second"/&gt;
                        &lt;entry name="java:jboss/exported/queue/second"/&gt;
                        &lt;durable&gt;false&lt;/durable&gt;
                    &lt;/jms-queue&gt;
                    &lt;jms-queue name="SecondDispatcher"&gt;
                        &lt;entry name="queue/dispatcher"/&gt;
                        &lt;entry name="java:jboss/exported/queue/dispatcher"/&gt;
                        &lt;durable&gt;false&lt;/durable&gt;
                    &lt;/jms-queue&gt;
                &lt;/jms-destinations&gt;
            &lt;/hornetq-server&gt;
        &lt;/subsystem&gt;
        &lt;subsystem xmlns="urn:jboss:domain:naming:1.2"&gt;
            &lt;remote-naming/&gt;
        &lt;/subsystem&gt;
        &lt;subsystem xmlns="urn:jboss:domain:remoting:1.1"&gt;
            &lt;connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/&gt;
        &lt;/subsystem&gt;
    &lt;/profile&gt;
    &lt;socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:100}"&gt;
        &lt;socket-binding name="messaging" port="5445"/&gt;
        &lt;socket-binding name="remoting" port="4447"/&gt;
    &lt;/socket-binding-group&gt;
&lt;/server&gt;
</code></pre>