The attribute <use-auto-recovery>works well to disable the recovery, but we
need XA recovery on several applications. So I tried to build the Artemis
RAR. Two questions came up:

1. Is it possible to build Artemis RAR under Java 7?

2. I am trying to configure the RA to use with SSL, but don't get it right
now. Always get an Error on the Serverside: "ERROR
[org.apache.activemq.artemis.core.server] AMQ224088: Timeout (10 seconds)
while handshaking has occurred."

My configuration so far of the RA deployed in JBoss EAP 6.4:
<resource-adapter id="artemis-rar.rar">
    <archive>
        artemis-rar.rar
    </archive>
    <transaction-support>XATransaction</transaction-support>
    <config-property name="password">
        ***
    </config-property>
    <config-property name="connectionParameters">
       
host=node1.corp;port=61616;ssl-enabled=true;key-store-path=/path/to/keystore/store.jks;key-store-password=***;
    </config-property>
    <config-property name="connectorClassName">
       
org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory
    </config-property>
    <config-property name="userName">
        ***
    </config-property>
    <config-property name="hA">
        true
    </config-property>
    <connection-definitions>
        <connection-definition
class-name="org.apache.activemq.artemis.ra.ActiveMQRAManagedConnectionFactory"
jndi-name="java:/JmsXA java:/RemoteJmsXA
java:jboss/DefaultJMSConnectionFactory" enabled="true"
use-java-context="true" pool-name="ActiveMQConnectionFactoryPool"
use-ccm="true">
            <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>***</user-name>
                    <password>***</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.queue" use-java-context="true"
pool-name="test.queue">
            <config-property name="PhysicalName">
                test.queue
            </config-property>
        </admin-object>
    </admin-objects>
</resource-adapter>




--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Reply via email to