ARTEMIS-3707 fix ra.xml

* update xml schemas
* fix ConnectionParameters
* remove TransactionManagerLocatorMethod and "The producer max rate"
* remove The max connections
This commit is contained in:
waldi5001 2022-03-04 21:46:42 +01:00 committed by clebertsuconic
parent 28513e048f
commit 694bf20d08
2 changed files with 20 additions and 49 deletions

View File

@ -2,14 +2,13 @@
<!-- $Id: ra.xml 76819 2008-08-08 11:04:20Z jesper.pedersen $ --> <!-- $Id: ra.xml 76819 2008-08-08 11:04:20Z jesper.pedersen $ -->
<connector xmlns="http://java.sun.com/xml/ns/j2ee" <connector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee xmlns="https://jakarta.ee/xml/ns/jakartaee"
http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/connector_2_0.xsd ">
version="1.5">
<display-name>ArtemisRA</display-name>
<description>ActiveMQ Artemis Resource Adapter</description> <description>ActiveMQ Artemis Resource Adapter</description>
<display-name>ArtemisRA</display-name>
<vendor-name>Apache Software Foundation</vendor-name> <vendor-name>Apache Software Foundation</vendor-name>
<eis-type>Jakarta Messaging 3.0 Server</eis-type> <eis-type>Jakarta Messaging 3.0 Server</eis-type>
<resourceadapter-version>1.0</resourceadapter-version> <resourceadapter-version>1.0</resourceadapter-version>
@ -52,7 +51,7 @@
</description> </description>
<config-property-name>ConnectionParameters</config-property-name> <config-property-name>ConnectionParameters</config-property-name>
<config-property-type>java.lang.String</config-property-type> <config-property-type>java.lang.String</config-property-type>
<config-property-value>host=localhost,port=61616</config-property-value> <config-property-value>host=localhost;port=61616</config-property-value>
</config-property> </config-property>
<!-- <config-property> <!-- <config-property>
@ -60,11 +59,6 @@
<config-property-name>HA</config-property-name> <config-property-name>HA</config-property-name>
<config-property-type>java.lang.Boolean</config-property-type> <config-property-type>java.lang.Boolean</config-property-type>
</config-property> </config-property>
<config-property>
<description>The method to use for locating the transactionmanager</description>
<config-property-name>TransactionManagerLocatorMethod</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property> <config-property>
<description>Use A local Transaction instead of XA?</description> <description>Use A local Transaction instead of XA?</description>
<config-property-name>UseLocalTx</config-property-name> <config-property-name>UseLocalTx</config-property-name>
@ -160,11 +154,6 @@
<config-property-name>ConfirmationWindowSize</config-property-name> <config-property-name>ConfirmationWindowSize</config-property-name>
<config-property-type>java.lang.Integer</config-property-type> <config-property-type>java.lang.Integer</config-property-type>
</config-property> </config-property>
<config-property>
<description>The producer max rate</description>
<config-property-name>ProducerMaxRate</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
</config-property>
<config-property> <config-property>
<description>The min large message size</description> <description>The min large message size</description>
<config-property-name>MinLargeMessageSize</config-property-name> <config-property-name>MinLargeMessageSize</config-property-name>
@ -190,10 +179,6 @@
<config-property-name>AutoGroup</config-property-name> <config-property-name>AutoGroup</config-property-name>
<config-property-type>java.lang.Boolean</config-property-type> <config-property-type>java.lang.Boolean</config-property-type>
</config-property> </config-property>
<config-property>
<description>The max connections</description>
<config-property-type>java.lang.Integer</config-property-type>
</config-property>
<config-property> <config-property>
<description>The pre acknowledge</description> <description>The pre acknowledge</description>
<config-property-name>PreAcknowledge</config-property-name> <config-property-name>PreAcknowledge</config-property-name>
@ -238,7 +223,7 @@
<description>The default session type</description> <description>The default session type</description>
<config-property-name>SessionDefaultType</config-property-name> <config-property-name>SessionDefaultType</config-property-name>
<config-property-type>java.lang.String</config-property-type> <config-property-type>java.lang.String</config-property-type>
<config-property-value>javax.jms.Queue</config-property-value> <config-property-value>jakarta.jms.Queue</config-property-value>
</config-property> </config-property>
<config-property> <config-property>
<description>Whether or not to participate in a JTA transaction, this is used if the RA does not have access to the Transaction Manager</description> <description>Whether or not to participate in a JTA transaction, this is used if the RA does not have access to the Transaction Manager</description>
@ -255,13 +240,13 @@
<connectionfactory-interface>org.apache.activemq.artemis.ra.ActiveMQRAConnectionFactory</connectionfactory-interface> <connectionfactory-interface>org.apache.activemq.artemis.ra.ActiveMQRAConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>org.apache.activemq.artemis.ra.ActiveMQRAConnectionFactoryImpl</connectionfactory-impl-class> <connectionfactory-impl-class>org.apache.activemq.artemis.ra.ActiveMQRAConnectionFactoryImpl</connectionfactory-impl-class>
<connection-interface>javax.jms.Session</connection-interface> <connection-interface>jakarta.jms.Session</connection-interface>
<connection-impl-class>org.apache.activemq.artemis.ra.ActiveMQRASession</connection-impl-class> <connection-impl-class>org.apache.activemq.artemis.ra.ActiveMQRASession</connection-impl-class>
</connection-definition> </connection-definition>
<transaction-support>XATransaction</transaction-support> <transaction-support>XATransaction</transaction-support>
<authentication-mechanism> <authentication-mechanism>
<authentication-mechanism-type>BasicPassword</authentication-mechanism-type> <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
<credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface> <credential-interface>jakarta.resource.spi.security.PasswordCredential</credential-interface>
</authentication-mechanism> </authentication-mechanism>
<reauthentication-support>false</reauthentication-support> <reauthentication-support>false</reauthentication-support>
</outbound-resourceadapter> </outbound-resourceadapter>
@ -269,18 +254,18 @@
<inbound-resourceadapter> <inbound-resourceadapter>
<messageadapter> <messageadapter>
<messagelistener> <messagelistener>
<messagelistener-type>javax.jms.MessageListener</messagelistener-type> <messagelistener-type>jakarta.jms.MessageListener</messagelistener-type>
<activationspec> <activationspec>
<activationspec-class>org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec</activationspec-class> <activationspec-class>org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec</activationspec-class>
<required-config-property> <required-config-property>
<config-property-name>destination</config-property-name> <config-property-name>destination</config-property-name>
</required-config-property> </required-config-property>
</activationspec> </activationspec>
</messagelistener> </messagelistener>
</messageadapter> </messageadapter>
</inbound-resourceadapter> </inbound-resourceadapter>
<adminobject> <adminobject>
<adminobject-interface>javax.jms.Queue</adminobject-interface> <adminobject-interface>jakarta.jms.Queue</adminobject-interface>
<adminobject-class>org.apache.activemq.artemis.jms.client.ActiveMQQueue</adminobject-class> <adminobject-class>org.apache.activemq.artemis.jms.client.ActiveMQQueue</adminobject-class>
<config-property> <config-property>
<config-property-name>Address</config-property-name> <config-property-name>Address</config-property-name>
@ -288,7 +273,7 @@
</config-property> </config-property>
</adminobject> </adminobject>
<adminobject> <adminobject>
<adminobject-interface>javax.jms.Topic</adminobject-interface> <adminobject-interface>jakarta.jms.Topic</adminobject-interface>
<adminobject-class>org.apache.activemq.artemis.jms.client.ActiveMQTopic</adminobject-class> <adminobject-class>org.apache.activemq.artemis.jms.client.ActiveMQTopic</adminobject-class>
<config-property> <config-property>
<config-property-name>Address</config-property-name> <config-property-name>Address</config-property-name>
@ -296,7 +281,7 @@
</config-property> </config-property>
</adminobject> </adminobject>
<adminobject> <adminobject>
<adminobject-interface>javax.jms.ConnectionFactory</adminobject-interface> <adminobject-interface>jakarta.jms.ConnectionFactory</adminobject-interface>
<adminobject-class>org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory</adminobject-class> <adminobject-class>org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory</adminobject-class>
<config-property> <config-property>
<config-property-name>BrokerURL</config-property-name> <config-property-name>BrokerURL</config-property-name>
@ -304,7 +289,7 @@
</config-property> </config-property>
</adminobject> </adminobject>
<adminobject> <adminobject>
<adminobject-interface>javax.jms.XAConnectionFactory</adminobject-interface> <adminobject-interface>jakarta.jms.XAConnectionFactory</adminobject-interface>
<adminobject-class>org.apache.activemq.artemis.jms.client.ActiveMQXAConnectionFactory</adminobject-class> <adminobject-class>org.apache.activemq.artemis.jms.client.ActiveMQXAConnectionFactory</adminobject-class>
<config-property> <config-property>
<config-property-name>BrokerURL</config-property-name> <config-property-name>BrokerURL</config-property-name>

View File

@ -2,11 +2,11 @@
<!-- $Id: ra.xml 76819 2008-08-08 11:04:20Z jesper.pedersen $ --> <!-- $Id: ra.xml 76819 2008-08-08 11:04:20Z jesper.pedersen $ -->
<connector xmlns="http://java.sun.com/xml/ns/j2ee" <connector xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd" http://xmlns.jcp.org/xml/ns/javaee/connector_1_7.xsd "
version="1.5"> version="1.7">
<description>ActiveMQ Artemis Resource Adapter</description> <description>ActiveMQ Artemis Resource Adapter</description>
<display-name>ArtemisRA</display-name> <display-name>ArtemisRA</display-name>
@ -52,7 +52,7 @@
</description> </description>
<config-property-name>ConnectionParameters</config-property-name> <config-property-name>ConnectionParameters</config-property-name>
<config-property-type>java.lang.String</config-property-type> <config-property-type>java.lang.String</config-property-type>
<config-property-value>host=localhost,port=61616</config-property-value> <config-property-value>host=localhost;port=61616</config-property-value>
</config-property> </config-property>
<!-- <config-property> <!-- <config-property>
@ -60,11 +60,6 @@
<config-property-name>HA</config-property-name> <config-property-name>HA</config-property-name>
<config-property-type>java.lang.Boolean</config-property-type> <config-property-type>java.lang.Boolean</config-property-type>
</config-property> </config-property>
<config-property>
<description>The method to use for locating the transactionmanager</description>
<config-property-name>TransactionManagerLocatorMethod</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property> <config-property>
<description>Use A local Transaction instead of XA?</description> <description>Use A local Transaction instead of XA?</description>
<config-property-name>UseLocalTx</config-property-name> <config-property-name>UseLocalTx</config-property-name>
@ -160,11 +155,6 @@
<config-property-name>ConfirmationWindowSize</config-property-name> <config-property-name>ConfirmationWindowSize</config-property-name>
<config-property-type>java.lang.Integer</config-property-type> <config-property-type>java.lang.Integer</config-property-type>
</config-property> </config-property>
<config-property>
<description>The producer max rate</description>
<config-property-name>ProducerMaxRate</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
</config-property>
<config-property> <config-property>
<description>The min large message size</description> <description>The min large message size</description>
<config-property-name>MinLargeMessageSize</config-property-name> <config-property-name>MinLargeMessageSize</config-property-name>
@ -190,10 +180,6 @@
<config-property-name>AutoGroup</config-property-name> <config-property-name>AutoGroup</config-property-name>
<config-property-type>java.lang.Boolean</config-property-type> <config-property-type>java.lang.Boolean</config-property-type>
</config-property> </config-property>
<config-property>
<description>The max connections</description>
<config-property-type>java.lang.Integer</config-property-type>
</config-property>
<config-property> <config-property>
<description>The pre acknowledge</description> <description>The pre acknowledge</description>
<config-property-name>PreAcknowledge</config-property-name> <config-property-name>PreAcknowledge</config-property-name>