title: Connecting wildlfy 9 to remote Artemis JMS (standalone) server
body: <p>I'm trying to connect wilfly 9 to a remote JMS provider (Artemis MQ) started on a different host.</p>
  
  <p>I've taken the standalone-full.xml, and modified so that I've removed all the 'hornetq' stuff, and defined my resource-adapter like the following:</p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:resource-adapters:3.0"&gt;
          &lt;resource-adapters&gt;
              &lt;resource-adapter id="artemis-ra-rar"&gt;
                  &lt;archive&gt;
                      artemis-ra-rar.rar
                  &lt;/archive&gt;
                  &lt;transaction-support&gt;XATransaction&lt;/transaction-support&gt;
                  &lt;config-property name="UserName"&gt;
                      username
                  &lt;/config-property&gt;
                  &lt;config-property name="ConnectionParameters"&gt;
                      host=myremotehost.mydomain.com;port=61613
                  &lt;/config-property&gt;
                  &lt;config-property name="Password"&gt;
                      password
                  &lt;/config-property&gt;
                  &lt;connection-definitions&gt;
                      &lt;connection-definition class-name="org.apache.activemq.artemis.ra.ActiveMQRAManagedConnectionFactory" jndi-name="java:/ConnectionFactory" enabled="true" pool-name="ConnectionFactory"&gt;
                          &lt;xa-pool&gt;
                              &lt;min-pool-size&gt;1&lt;/min-pool-size&gt;
                              &lt;max-pool-size&gt;20&lt;/max-pool-size&gt;
                              &lt;prefill&gt;false&lt;/prefill&gt;
                              &lt;is-same-rm-override&gt;false&lt;/is-same-rm-override&gt;
                          &lt;/xa-pool&gt;
                      &lt;/connection-definition&gt;
                  &lt;/connection-definitions&gt;
                  &lt;admin-objects&gt;
                      &lt;admin-object class-name="org.apache.activemq.artemis.jms.client.ActiveMQQueue" jndi-name="java:jboss/artemis/queue/TestQueue" use-java-context="true" pool-name="TestQueue"&gt;
                          &lt;config-property name="PhysicalName"&gt;
                              artemis/queue/TestQueue
                          &lt;/config-property&gt;
                      &lt;/admin-object&gt;
                  &lt;/admin-objects&gt;
              &lt;/resource-adapter&gt;
          &lt;/resource-adapters&gt;
      &lt;/subsystem&gt;
  </code></pre>
  
  <p>I've defined an artemis-ra-rar, as it is used for wildfly 10..</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;!-- $Id: ra.xml 76819 2008-08-08 11:04:20Z jesper.pedersen $ --&gt;
  
  &lt;connector xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
         http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
         version="1.5"&gt;
  
  &lt;description&gt;ActiveMQ Artemis 2.0 Resource Adapter&lt;/description&gt;
  &lt;display-name&gt;ActiveMQ Artemis 2.0 Resource Adapter&lt;/display-name&gt;
  
  &lt;vendor-name&gt;Red Hat Middleware LLC&lt;/vendor-name&gt;
  &lt;eis-type&gt;JMS 1.1 Server&lt;/eis-type&gt;
  &lt;resourceadapter-version&gt;1.0&lt;/resourceadapter-version&gt;
  
  &lt;license&gt;
    &lt;description&gt;
       Licensed to the Apache Software Foundation (ASF) under one or more
       contributor license agreements. See the NOTICE file distributed with
       this work for additional information regarding copyright ownership.
       The ASF licenses this file to You under the Apache License, Version 2.0
       (the "License"); you may not use this file except in compliance with
       the License. You may obtain a copy of the License at
  
           http://www.apache.org/licenses/LICENSE-2.0
  
       Unless required by applicable law or agreed to in writing, software
       distributed under the License is distributed on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       See the License for the specific language governing permissions and
       limitations under the License.
    &lt;/description&gt;
    &lt;license-required&gt;true&lt;/license-required&gt;
   &lt;/license&gt;
  
   &lt;resourceadapter&gt;
    &lt;resourceadapter-class&gt;org.apache.activemq.artemis.ra.ActiveMQResourceAdapter&lt;/resourceadapter-class&gt;
    &lt;config-property&gt;
       &lt;description&gt;
          The transport type. Multiple connectors can be configured by using a comma separated list,
          i.e. org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnectorFactory,org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnectorFactory.
       &lt;/description&gt;
       &lt;config-property-name&gt;ConnectorClassName&lt;/config-property-name&gt;
       &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
       &lt;config-property-value&gt;org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnectorFactory&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
       &lt;description&gt;The transport configuration. These values must be in the form of key=val;key=val;,
          if multiple connectors are used then each set must be separated by a comma i.e. host=host1;port=61616,host=host2;port=61617.
          Each set of params maps to the connector classname specified.
       &lt;/description&gt;
       &lt;config-property-name&gt;ConnectionParameters&lt;/config-property-name&gt;
       &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
       &lt;!-- &lt;config-property-value&gt;server-id=0&lt;/config-property-value&gt; --&gt;
       &lt;config-property-value&gt;host=myremotehost.mydomain.com;port=61613&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;!--
    &lt;config-property&gt;
      &lt;description&gt;Does we support HA&lt;/description&gt;
      &lt;config-property-name&gt;HA&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Boolean&lt;/config-property-type&gt;
      &lt;config-property-value&gt;false&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The method to use for locating the transactionmanager&lt;/description&gt;
      &lt;config-property-name&gt;TransactionManagerLocatorMethod&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
      &lt;config-property-value&gt;getTm&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;Use A local Transaction instead of XA?&lt;/description&gt;
      &lt;config-property-name&gt;UseLocalTx&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Boolean&lt;/config-property-type&gt;
      &lt;config-property-value&gt;false&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    --&gt;
    &lt;config-property&gt;
      &lt;description&gt;The user name used to login to the JMS server&lt;/description&gt;
      &lt;config-property-name&gt;UserName&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
      &lt;config-property-value&gt;admin&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The password used to login to the JMS server&lt;/description&gt;
      &lt;config-property-name&gt;Password&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
      &lt;config-property-value&gt;password&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;!-- 
    &lt;config-property&gt;
      &lt;description&gt;The jndi params to use to look up the jms resources if local jndi is not to be used&lt;/description&gt;
      &lt;config-property-name&gt;JndiParams&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
      &lt;config-property-value&gt;java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory;java.naming.provider.url=jnp://localhost:1199;java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The jGroups File name&lt;/description&gt;
      &lt;config-property-name&gt;JgroupsFile&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
      &lt;config-property-value&gt;jgroups.xml&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The name of the channel used on this configuration&lt;/description&gt;
      &lt;config-property-name&gt;JgroupsChannelName&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Integer&lt;/config-property-type&gt;
      &lt;config-property-value&gt;my-channel&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The discovery group address&lt;/description&gt;
      &lt;config-property-name&gt;DiscoveryAddress&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The discovery group port&lt;/description&gt;
      &lt;config-property-name&gt;DiscoveryPort&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Integer&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The discovery refresh timeout&lt;/description&gt;
      &lt;config-property-name&gt;DiscoveryRefreshTimeout&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Long&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The discovery initial wait timeout&lt;/description&gt;
      &lt;config-property-name&gt;DiscoveryInitialWaitTimeout&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Long&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The load balancing policy class name&lt;/description&gt;
      &lt;config-property-name&gt;LoadBalancingPolicyClassName&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The client failure check period&lt;/description&gt;
      &lt;config-property-name&gt;ClientFailureCheckPeriod&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Long&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The connection TTL&lt;/description&gt;
      &lt;config-property-name&gt;ConnectionTTL&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Long&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The call timeout&lt;/description&gt;
      &lt;config-property-name&gt;CallTimeout&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Long&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The dups ok batch size&lt;/description&gt;
      &lt;config-property-name&gt;DupsOKBatchSize&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Integer&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The transaction batch size&lt;/description&gt;
      &lt;config-property-name&gt;TransactionBatchSize&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Integer&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The consumer window size&lt;/description&gt;
      &lt;config-property-name&gt;ConsumerWindowSize&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Integer&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The consumer max rate&lt;/description&gt;
      &lt;config-property-name&gt;ConsumerMaxRate&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Integer&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The confirmation window size&lt;/description&gt;
      &lt;config-property-name&gt;ConfirmationWindowSize&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Integer&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The producer max rate&lt;/description&gt;
      &lt;config-property-name&gt;ProducerMaxRate&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Integer&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The min large message size&lt;/description&gt;
      &lt;config-property-name&gt;MinLargeMessageSize&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Integer&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The block on acknowledge&lt;/description&gt;
      &lt;config-property-name&gt;BlockOnAcknowledge&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Boolean&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The block on non durable send&lt;/description&gt;
      &lt;config-property-name&gt;BlockOnNonDurableSend&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Boolean&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The block on durable send&lt;/description&gt;
      &lt;config-property-name&gt;BlockOnDurableSend&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Boolean&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The auto group&lt;/description&gt;
      &lt;config-property-name&gt;AutoGroup&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Boolean&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The max connections&lt;/description&gt;
      &lt;config-property-type&gt;java.lang.Integer&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The pre acknowledge&lt;/description&gt;
      &lt;config-property-name&gt;PreAcknowledge&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Boolean&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The retry interval&lt;/description&gt;
      &lt;config-property-name&gt;RetryInterval&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Long&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The retry interval multiplier&lt;/description&gt;
      &lt;config-property-name&gt;RetryIntervalMultiplier&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Double&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The client id&lt;/description&gt;
      &lt;config-property-name&gt;ClientID&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;Whether the password is cleartext or encrypted, default false&lt;/description&gt;
      &lt;config-property-name&gt;UseMaskedPassword&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.Boolean&lt;/config-property-type&gt;
      &lt;config-property-value&gt;&lt;/config-property-value&gt;
    &lt;/config-property&gt;
    &lt;config-property&gt;
      &lt;description&gt;The class definition (full qualified name and its properties) used to encrypt the password&lt;/description&gt;
      &lt;config-property-name&gt;PasswordCodec&lt;/config-property-name&gt;
      &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
      &lt;config-property-value&gt;org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec;key=clusterpassword;algorithm=something&lt;/config-property-value&gt;
    &lt;/config-property&gt;--&gt;
  
    &lt;outbound-resourceadapter&gt;
       &lt;connection-definition&gt;
          &lt;managedconnectionfactory-class&gt;org.apache.activemq.artemis.ra.ActiveMQRAManagedConnectionFactory&lt;/managedconnectionfactory-class&gt;
  
          &lt;config-property&gt;
             &lt;description&gt;The default session type&lt;/description&gt;
             &lt;config-property-name&gt;SessionDefaultType&lt;/config-property-name&gt;
             &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
             &lt;config-property-value&gt;javax.jms.Queue&lt;/config-property-value&gt;
          &lt;/config-property&gt;
          &lt;config-property&gt;
             &lt;description&gt;Try to obtain a lock within specified number of seconds; less than or equal to 0 disable this functionality&lt;/description&gt;
             &lt;config-property-name&gt;UseTryLock&lt;/config-property-name&gt;
             &lt;config-property-type&gt;java.lang.Integer&lt;/config-property-type&gt;
             &lt;config-property-value&gt;0&lt;/config-property-value&gt;
          &lt;/config-property&gt;
  
          &lt;connectionfactory-interface&gt;org.apache.activemq.artemis.ra.ActiveMQRAConnectionFactory&lt;/connectionfactory-interface&gt;
          &lt;connectionfactory-impl-class&gt;org.apache.activemq.artemis.ra.ActiveMQRAConnectionFactoryImpl&lt;/connectionfactory-impl-class&gt;
          &lt;connection-interface&gt;javax.jms.Session&lt;/connection-interface&gt;
          &lt;connection-impl-class&gt;org.apache.activemq.artemis.ra.ActiveMQRASession&lt;/connection-impl-class&gt;
       &lt;/connection-definition&gt;
       &lt;transaction-support&gt;XATransaction&lt;/transaction-support&gt;
       &lt;authentication-mechanism&gt;
          &lt;authentication-mechanism-type&gt;BasicPassword&lt;/authentication-mechanism-type&gt;
          &lt;credential-interface&gt;javax.resource.spi.security.PasswordCredential&lt;/credential-interface&gt;
       &lt;/authentication-mechanism&gt;
       &lt;reauthentication-support&gt;false&lt;/reauthentication-support&gt;
    &lt;/outbound-resourceadapter&gt;
  
    &lt;inbound-resourceadapter&gt;
       &lt;messageadapter&gt;
          &lt;messagelistener&gt;
             &lt;messagelistener-type&gt;javax.jms.MessageListener&lt;/messagelistener-type&gt;
             &lt;activationspec&gt;
                &lt;activationspec-class&gt;org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec&lt;/activationspec-class&gt;
                &lt;required-config-property&gt;
                    &lt;config-property-name&gt;destination&lt;/config-property-name&gt;
                &lt;/required-config-property&gt;
             &lt;/activationspec&gt;
          &lt;/messagelistener&gt;
       &lt;/messageadapter&gt;
    &lt;/inbound-resourceadapter&gt;
  
  &lt;/resourceadapter&gt;
  &lt;/connector&gt;
  </code></pre>
  
  <p>Wildfly starts without complaining:</p>
  
  <pre><code>Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
  11:47:51,746 INFO  [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final
  11:47:51,986 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
  11:47:52,063 INFO  [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) starting
  11:47:53,241 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 27) WFLYCTL0028: Attribute 'enabled' in the resource at address '/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
  11:47:53,248 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 23) WFLYCTL0028: Attribute 'job-repository-type' in the resource at address '/subsystem=batch' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
  11:47:53,266 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found artemis-ra-rar.rar in deployment directory. To trigger deployment create a file called artemis-ra-rar.rar.dodeploy
  11:47:53,320 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
  11:47:53,347 INFO  [org.xnio] (MSC service thread 1-6) XNIO version 3.3.1.Final
  11:47:53,361 INFO  [org.xnio.nio] (MSC service thread 1-6) XNIO NIO Implementation Version 3.3.1.Final
  11:47:53,404 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 59) WFLYSEC0002: Activating Security Subsystem
  11:47:53,405 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 60) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
  11:47:53,416 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 40) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based on your 8 available processors
  11:47:53,416 INFO  [org.jboss.as.security] (MSC service thread 1-1) WFLYSEC0001: Current PicketBox version=4.9.2.Final
  11:47:53,431 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 48) WFLYJSF0007: Activated the following JSF Implementations: [main]
  11:47:53,441 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 41) WFLYCLINF0001: Activating Infinispan subsystem.
  11:47:53,465 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 52) WFLYNAM0001: Activating Naming Subsystem
  11:47:53,466 INFO  [org.wildfly.iiop.openjdk] (ServerService Thread Pool -- 42) WFLYIIOP0001: Activating IIOP Subsystem
  11:47:53,466 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 62) WFLYWS0002: Activating WebServices Extension
  11:47:53,555 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0003: Undertow 1.2.9.Final starting
  11:47:53,557 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 61) WFLYUT0003: Undertow 1.2.9.Final starting
  11:47:53,565 INFO  [org.jboss.as.connector] (MSC service thread 1-8) WFLYJCA0009: Starting JCA Subsystem (IronJacamar 1.2.4.Final)
  11:47:53,610 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 36) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
  11:47:53,625 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = h2
  11:47:53,635 INFO  [org.jboss.remoting] (MSC service thread 1-6) JBoss Remoting version 4.0.9.Final
  11:47:53,666 INFO  [org.jboss.as.naming] (MSC service thread 1-3) WFLYNAM0003: Starting Naming Service
  11:47:53,666 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-8) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
  11:47:53,765 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 61) WFLYUT0014: Creating file handler for path /Users/xxxx/servers/wildfly-9.0.1.Final/welcome-content
  11:47:53,806 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0012: Started server default-server.
  11:47:53,851 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0018: Host default-host starting
  11:47:53,936 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0006: Undertow HTTP listener default listening on localhost/127.0.0.1:8080
  11:47:54,169 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
  11:47:54,235 INFO  [org.wildfly.iiop.openjdk] (MSC service thread 1-1) WFLYIIOP0009: CORBA ORB Service started
  11:47:54,365 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) WFLYDS0013: Started FileSystemDeploymentService for directory /Users/xxxx/servers/wildfly-9.0.1.Final/standalone/deployments
  11:47:54,381 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0027: Starting deployment of "artemis-ra-rar.rar" (runtime-name: "artemis-ra-rar.rar")
  11:47:54,381 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "test-jms.xml" (runtime-name: "test-jms.xml")
  11:47:54,523 INFO  [org.jboss.ws.common.management] (MSC service thread 1-3) JBWS022052: Starting JBoss Web Services - Stack CXF Server 5.0.0.Final
  11:47:55,170 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-2) IJ020001: Required license terms for file:/Users/xxxx/servers/wildfly-9.0.1.Final/standalone/deployments/artemis-ra-rar.rar/
  11:47:55,196 INFO  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-8) IJ020001: Required license terms for file:/Users/xxxx/servers/wildfly-9.0.1.Final/standalone/deployments/artemis-ra-rar.rar/
  11:47:55,211 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-8) WFLYJCA0007: Registered connection factory java:/ConnectionFactory
  11:47:55,212 WARN  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-8) IJ020016: Missing &lt;recovery&gt; element. XA recovery disabled for: java:/ConnectionFactory
  11:47:55,220 WARN  [org.apache.activemq.artemis.service.extensions] (MSC service thread 1-8) AMQ342000: Attempted to locate a Transaction Manager but none found.
  11:47:55,278 INFO  [org.apache.activemq.artemis.ra] (MSC service thread 1-8) Resource adaptor started
  11:47:55,279 INFO  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-8) IJ020002: Deployed: file:/Users/xxxx/servers/wildfly-9.0.1.Final/standalone/deployments/artemis-ra-rar.rar/
  11:47:55,280 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-4) WFLYJCA0002: Bound JCA ConnectionFactory [java:/ConnectionFactory]
  11:47:55,324 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Deployed "test-jms.xml" (runtime-name : "test-jms.xml")
  11:47:55,324 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Deployed "artemis-ra-rar.rar" (runtime-name : "artemis-ra-rar.rar")
  11:47:55,663 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
  11:47:55,664 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
  11:47:55,664 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) started in 4224ms - Started 310 of 497 services (229 services are lazy, passive or on-demand)
  </code></pre>
  
  <p>However, when I try to deploy a sample Servlet that should use the queue I get an error complaining about missing default jms connection factory:</p>
  
  <pre><code>11:50:45,456 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0027: Starting deployment of "wildfly-helloworld-mdb.war" (runtime-name: "wildfly-helloworld-mdb.war")
  11:50:45,628 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) WFLYWELD0003: Processing weld deployment wildfly-helloworld-mdb.war
  11:50:45,680 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-4) HV000001: Hibernate Validator 5.1.3.Final
  11:50:45,860 INFO  [org.jboss.as.messaging] (MSC service thread 1-7) WFLYMSG0002: Bound messaging object to jndi name java:/queue/TestQueue
  11:50:45,872 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) WFLYWELD0006: Starting Services for CDI deployment: wildfly-helloworld-mdb.war
  11:50:45,902 INFO  [org.jboss.weld.Version] (MSC service thread 1-8) WELD-000900: 2.2.14 (Final)
  11:50:45,930 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) WFLYWELD0009: Starting weld service for deployment wildfly-helloworld-mdb.war
  11:50:46,103 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" =&gt; "wildfly-helloworld-mdb.war")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" =&gt; ["jboss.naming.context.java.module.wildfly-helloworld-mdb.wildfly-helloworld-mdb.DefaultJMSConnectionFactory is missing [jboss.naming.context.java.jboss.DefaultJMSConnectionFactory]"]}
  11:50:46,105 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "wildfly-helloworld-mdb.war" was rolled back with the following failure message: {"WFLYCTL0180: Services with missing/unavailable dependencies" =&gt; ["jboss.naming.context.java.module.wildfly-helloworld-mdb.wildfly-helloworld-mdb.DefaultJMSConnectionFactory is missing [jboss.naming.context.java.jboss.DefaultJMSConnectionFactory]"]}
  11:50:46,111 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) WFLYWELD0010: Stopping weld service for deployment wildfly-helloworld-mdb.war
  11:50:46,148 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0028: Stopped deployment wildfly-helloworld-mdb.war (runtime-name: wildfly-helloworld-mdb.war) in 42ms
  ...
  </code></pre>
  
  <p>Can somebody show me an example how to connect to a remove JMS server which does not involve using HornetQ as a bridge?</p>
  
  <p>KR,
  Davide</p>