activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From horvie <david.hor...@artes.si>
Subject Admin objects not registered with Wildfy 8/9 and remote Apache Artemis 1.0.0
Date Mon, 21 Sep 2015 07:00:18 GMT
After configuring Apache Artemis on remote machine and adding resource
adapter to Wildfly I see in log files that adapter is started and 
“Bound JCA ConnectionFactory [java:/ConnectionFactory]”
and
“registering recovery for factory : ActiveMQConnectionFactory
[serverLocator=ServerLocatorImpl
[initialConnectors=[TransportConfiguration(name=4bc24123-602b-11e5-9407-551411613f9b,
factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory)
?port=61616&host=myHost], discoveryGroupConfiguration=null], clientID=null,
consumerWindowSize = 1048576, dupsOKBatchSize=1048576,
transactionBatchSize=1048576, readOnly=false]”.

But my TEST_Q is not bound to JNDI, and there is no trace in log files about
admin objects.

broker.xml:
<configuration xsi:schemaLocation="urn:activemq
/schema/artemis-configuration.xsd">
	<jms>
		<queue name="DLQ" />
		<queue name="ExpiryQueue" />
		<queue name="TEST_Q" />
	</jms>
	<core>
		...
		<security-enabled>false</security-enabled>
		...
	</core>
</configuration>


standalone.xml:
<subsystem xmlns="urn:jboss:domain:resource-adapters:3.0">
            <resource-adapters>
                <resource-adapter id="artemis-rar.rar">
                    <module slot="1.0.0" id="org.apache.artemis.ra"/>
                    <transaction-support>XATransaction</transaction-support>
                    <config-property name="ConnectionParameters">
                        host=myHost;port=61616
                    </config-property>
                    <config-property name="Password">
                        pass
                    </config-property>
                    <config-property name="UserName">
                        user
                    </config-property>
                    <connection-definitions>
                        <connection-definition
class-name="org.apache.activemq.artemis.ra.ActiveMQRAManagedConnectionFactory"
jndi-name="java:/ConnectionFactory" enabled="true"
pool-name="ConnectionFactory">
                            <xa-pool>
                                <min-pool-size>1</min-pool-size>
                                <max-pool-size>20</max-pool-size>
                                <prefill>false</prefill>
                               
<is-same-rm-override>false</is-same-rm-override>
                            </xa-pool>
                            <recovery>
                                <recover-credential>
                                    <user-name>u</user-name>
                                    <password>p</password>
                                </recover-credential>
                            </recovery>
                        </connection-definition>
                    </connection-definitions>
                    <admin-objects>
                        <admin-object
class-name="org.apache.activemq.artemis.jms.client.ActiveMQQueue"
jndi-name="java:/queue/TEST_Q" use-java-context="true" pool-name="TEST_Q">
                            <config-property name="PhysicalName">
                                TEST_Q
                            </config-property>
                        </admin-object>
                    </admin-objects>
                </resource-adapter>
            </resource-adapters>
        </subsystem>


ra.xml (inside ${ra-module}/META-INF/ folder):
<?xml version="1.0" encoding="UTF-8"?>

<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">

   <description>ActiveMQ Artemis 2.0 Resource Adapter</description>
   <display-name>ActiveMQ Artemis 2.0 Resource Adapter</display-name>

   <vendor-name>Red Hat Middleware LLC</vendor-name>
   <eis-type>JMS 1.1 Server</eis-type>
   <resourceadapter-version>1.0</resourceadapter-version>
    <resourceadapter>
     
<resourceadapter-class>org.apache.activemq.artemis.ra.ActiveMQResourceAdapter</resourceadapter-class>
      <config-property>
         <config-property-name>ConnectorClassName</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
        
<config-property-value>org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory</config-property-value>
      </config-property>
      <outbound-resourceadapter>
         <connection-definition>
           
<managedconnectionfactory-class>org.apache.activemq.artemis.ra.ActiveMQRAManagedConnectionFactory</managedconnectionfactory-class>
            <config-property>
               <description>The default session type</description>
              
<config-property-name>SessionDefaultType</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
              
<config-property-value>javax.jms.Queue</config-property-value>
            </config-property>
            <config-property>
               <description>Try to obtain a lock within specified number of
seconds; less than or equal to 0 disable this functionality</description>
               <config-property-name>UseTryLock</config-property-name>
              
<config-property-type>java.lang.Integer</config-property-type>
               <config-property-value>0</config-property-value>
            </config-property>
           
<connectionfactory-interface>org.apache.activemq.artemis.ra.ActiveMQRAConnectionFactory</connectionfactory-interface>
           
<connectionfactory-impl-class>org.apache.activemq.artemis.ra.ActiveMQRAConnectionFactoryImpl</connectionfactory-impl-class>
            <connection-interface>javax.jms.Session</connection-interface>
           
<connection-impl-class>org.apache.activemq.artemis.ra.ActiveMQRASession</connection-impl-class>
         </connection-definition>
         <transaction-support>XATransaction</transaction-support>
         <authentication-mechanism>
           
<authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
           
<credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
         </authentication-mechanism>
         <reauthentication-support>false</reauthentication-support>
      </outbound-resourceadapter>
      <inbound-resourceadapter>
         <messageadapter>
            <messagelistener>
              
<messagelistener-type>javax.jms.MessageListener</messagelistener-type>
               <activationspec>
                 
<activationspec-class>org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec</activationspec-class>
                  <required-config-property>
                     
<config-property-name>destination</config-property-name>
                  </required-config-property>
               </activationspec>
            </messagelistener>
         </messageadapter>
      </inbound-resourceadapter>
   </resourceadapter>
</connector>



--
View this message in context: http://activemq.2283324.n4.nabble.com/Admin-objects-not-registered-with-Wildfy-8-9-and-remote-Apache-Artemis-1-0-0-tp4702120.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message