Java Reference
In-Depth Information
As you can see in the previous screenshot, there are the following two out-of-the-box
connection-factory definitions:
•
InVmConnectionFactory
: This connection factory is bound under the
java:/
ConnectionFactory
entry and is used when the server and client are part of
the same process (that is, they are running on the same JVM).
•
RemoteConnectionFactory
: This connection factory is bounded under the
java:jboss/exported/jms/RemoteConnectionFactory
entry, and
as the name implies, it can be used using Netty as the connector when JMS con-
nections are provided by a remote server.
If you want to change the connection factory's JNDI binding, the simplest choice is to go
through the server configuration file (for example,
standalone-full.xml
, for a
standalone mode):
<connection-factory name="InVmConnectionFactory">
<connectors>
<connector-ref connector-name="in-vm"/>
</connectors>
<entries>
<entry name="java:/ConnectionFactory"/>
</entries>
</connection-factory>
<connection-factory name="RemoteConnectionFactory">
<connectors>
<connector-ref connector-name="http-connector"/>
</connectors>
<entries>
<entry name="java:jboss/exported/jms/
RemoteConnectionFactory"/>
</entries>
</connection-factory>
<pooled-connection-factory name="hornetq-ra">
<transaction mode="xa"/>
<connectors>
<connector-ref connector-name="in-vm"/>
</connectors>