mirror of https://github.com/apache/activemq.git
[AMQ-9398] Fix activemq-ra/activemq-rar namespaces for Jakarta EE
This commit is contained in:
parent
dfd35d89f6
commit
799b802581
|
@ -147,25 +147,19 @@ public class ActiveMQActivationSpec implements MessageActivationSpec, Serializab
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isValidUseRAManagedTransaction(List<String> errorMessages) {
|
public boolean isValidUseRAManagedTransaction(List<String> errorMessages) {
|
||||||
try {
|
boolean valid = isValidBooleanString(useRAManagedTransaction);
|
||||||
new Boolean(useRAManagedTransaction);
|
if(!valid) {
|
||||||
return true;
|
|
||||||
} catch (Throwable e) {
|
|
||||||
//
|
|
||||||
}
|
|
||||||
errorMessages.add("useRAManagedTransaction must be set to: true or false.");
|
errorMessages.add("useRAManagedTransaction must be set to: true or false.");
|
||||||
return false;
|
}
|
||||||
|
return valid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isValidNoLocal(List<String> errorMessages) {
|
public boolean isValidNoLocal(List<String> errorMessages) {
|
||||||
try {
|
boolean valid = isValidBooleanString(noLocal);
|
||||||
new Boolean(noLocal);
|
if(!valid) {
|
||||||
return true;
|
|
||||||
} catch (Throwable e) {
|
|
||||||
//
|
|
||||||
}
|
|
||||||
errorMessages.add("noLocal must be set to: true or false.");
|
errorMessages.add("noLocal must be set to: true or false.");
|
||||||
return false;
|
}
|
||||||
|
return valid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isValidMessageSelector(List<String> errorMessages) {
|
public boolean isValidMessageSelector(List<String> errorMessages) {
|
||||||
|
@ -217,14 +211,11 @@ public class ActiveMQActivationSpec implements MessageActivationSpec, Serializab
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isValidEnableBatch(List<String> errorMessages) {
|
public boolean isValidEnableBatch(List<String> errorMessages) {
|
||||||
try {
|
boolean valid = isValidBooleanString(enableBatch);
|
||||||
new Boolean(enableBatch);
|
if(!valid) {
|
||||||
return true;
|
|
||||||
} catch (Throwable e) {
|
|
||||||
//
|
|
||||||
}
|
|
||||||
errorMessages.add("enableBatch must be set to: true or false");
|
errorMessages.add("enableBatch must be set to: true or false");
|
||||||
return false;
|
}
|
||||||
|
return valid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResourceAdapter getResourceAdapter() {
|
public ResourceAdapter getResourceAdapter() {
|
||||||
|
@ -735,4 +726,8 @@ public class ActiveMQActivationSpec implements MessageActivationSpec, Serializab
|
||||||
public void setKeyStoreKeyPassword(String keyStoreKeyPassword) {
|
public void setKeyStoreKeyPassword(String keyStoreKeyPassword) {
|
||||||
this.keyStoreKeyPassword = keyStoreKeyPassword;
|
this.keyStoreKeyPassword = keyStoreKeyPassword;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static boolean isValidBooleanString(String booleanString) {
|
||||||
|
return ("true".equalsIgnoreCase(booleanString) || ("false".equalsIgnoreCase(booleanString)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,15 +16,14 @@
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<connector xmlns="http://java.sun.com/xml/ns/j2ee"
|
<connector xmlns="https://jakarta.ee/xml/ns/jakartaee"
|
||||||
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="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/connector_2_0.xsd"
|
||||||
http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
|
version="2.0">
|
||||||
version="1.5">
|
|
||||||
<description>ActiveMQ inbound and outbound JMS ResourceAdapter</description>
|
<description>ActiveMQ inbound and outbound JMS ResourceAdapter</description>
|
||||||
<display-name>ActiveMQ JMS Resource Adapter</display-name>
|
<display-name>ActiveMQ JMS Resource Adapter</display-name>
|
||||||
<vendor-name>activemq.org</vendor-name>
|
<vendor-name>activemq.org</vendor-name>
|
||||||
<eis-type>JMS 1.1</eis-type>
|
<eis-type>JMS 3.1</eis-type>
|
||||||
<resourceadapter-version>1.0</resourceadapter-version>
|
<resourceadapter-version>1.0</resourceadapter-version>
|
||||||
<license>
|
<license>
|
||||||
<description>
|
<description>
|
||||||
|
@ -131,36 +130,36 @@
|
||||||
<outbound-resourceadapter>
|
<outbound-resourceadapter>
|
||||||
<connection-definition>
|
<connection-definition>
|
||||||
<managedconnectionfactory-class>org.apache.activemq.ra.ActiveMQManagedConnectionFactory</managedconnectionfactory-class>
|
<managedconnectionfactory-class>org.apache.activemq.ra.ActiveMQManagedConnectionFactory</managedconnectionfactory-class>
|
||||||
<connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
|
<connectionfactory-interface>jakarta.jms.ConnectionFactory</connectionfactory-interface>
|
||||||
<connectionfactory-impl-class>org.apache.activemq.ra.ActiveMQConnectionFactory</connectionfactory-impl-class>
|
<connectionfactory-impl-class>org.apache.activemq.ra.ActiveMQConnectionFactory</connectionfactory-impl-class>
|
||||||
<connection-interface>javax.jms.Connection</connection-interface>
|
<connection-interface>jakarta.jms.Connection</connection-interface>
|
||||||
<connection-impl-class>org.apache.activemq.ra.ManagedConnectionProxy</connection-impl-class>
|
<connection-impl-class>org.apache.activemq.ra.ManagedConnectionProxy</connection-impl-class>
|
||||||
</connection-definition>
|
</connection-definition>
|
||||||
<connection-definition>
|
<connection-definition>
|
||||||
<managedconnectionfactory-class>org.apache.activemq.ra.ActiveMQManagedConnectionFactory</managedconnectionfactory-class>
|
<managedconnectionfactory-class>org.apache.activemq.ra.ActiveMQManagedConnectionFactory</managedconnectionfactory-class>
|
||||||
<connectionfactory-interface>javax.jms.QueueConnectionFactory</connectionfactory-interface>
|
<connectionfactory-interface>jakarta.jms.QueueConnectionFactory</connectionfactory-interface>
|
||||||
<connectionfactory-impl-class>org.apache.activemq.ra.ActiveMQConnectionFactory</connectionfactory-impl-class>
|
<connectionfactory-impl-class>org.apache.activemq.ra.ActiveMQConnectionFactory</connectionfactory-impl-class>
|
||||||
<connection-interface>javax.jms.QueueConnection</connection-interface>
|
<connection-interface>jakarta.jms.QueueConnection</connection-interface>
|
||||||
<connection-impl-class>org.apache.activemq.ra.ManagedConnectionProxy</connection-impl-class>
|
<connection-impl-class>org.apache.activemq.ra.ManagedConnectionProxy</connection-impl-class>
|
||||||
</connection-definition>
|
</connection-definition>
|
||||||
<connection-definition>
|
<connection-definition>
|
||||||
<managedconnectionfactory-class>org.apache.activemq.ra.ActiveMQManagedConnectionFactory</managedconnectionfactory-class>
|
<managedconnectionfactory-class>org.apache.activemq.ra.ActiveMQManagedConnectionFactory</managedconnectionfactory-class>
|
||||||
<connectionfactory-interface>javax.jms.TopicConnectionFactory</connectionfactory-interface>
|
<connectionfactory-interface>jakarta.jms.TopicConnectionFactory</connectionfactory-interface>
|
||||||
<connectionfactory-impl-class>org.apache.activemq.ra.ActiveMQConnectionFactory</connectionfactory-impl-class>
|
<connectionfactory-impl-class>org.apache.activemq.ra.ActiveMQConnectionFactory</connectionfactory-impl-class>
|
||||||
<connection-interface>javax.jms.TopicConnection</connection-interface>
|
<connection-interface>jakarta.jms.TopicConnection</connection-interface>
|
||||||
<connection-impl-class>org.apache.activemq.ra.ManagedConnectionProxy</connection-impl-class>
|
<connection-impl-class>org.apache.activemq.ra.ManagedConnectionProxy</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>
|
||||||
<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.ra.ActiveMQActivationSpec</activationspec-class>
|
<activationspec-class>org.apache.activemq.ra.ActiveMQActivationSpec</activationspec-class>
|
||||||
|
|
||||||
|
@ -176,7 +175,7 @@
|
||||||
</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.command.ActiveMQQueue</adminobject-class>
|
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobject-class>
|
||||||
<config-property>
|
<config-property>
|
||||||
<config-property-name>PhysicalName</config-property-name>
|
<config-property-name>PhysicalName</config-property-name>
|
||||||
|
@ -184,7 +183,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.command.ActiveMQTopic</adminobject-class>
|
<adminobject-class>org.apache.activemq.command.ActiveMQTopic</adminobject-class>
|
||||||
<config-property>
|
<config-property>
|
||||||
<config-property-name>PhysicalName</config-property-name>
|
<config-property-name>PhysicalName</config-property-name>
|
||||||
|
@ -192,7 +191,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.ActiveMQConnectionFactory</adminobject-class>
|
<adminobject-class>org.apache.activemq.ActiveMQConnectionFactory</adminobject-class>
|
||||||
<config-property>
|
<config-property>
|
||||||
<config-property-name>brokerUrl</config-property-name>
|
<config-property-name>brokerUrl</config-property-name>
|
||||||
|
@ -200,7 +199,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.pool.XaPooledConnectionFactory</adminobject-class>
|
<adminobject-class>org.apache.activemq.pool.XaPooledConnectionFactory</adminobject-class>
|
||||||
<config-property>
|
<config-property>
|
||||||
<config-property-name>brokerUrl</config-property-name>
|
<config-property-name>brokerUrl</config-property-name>
|
||||||
|
@ -212,7 +211,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.ActiveMQXAConnectionFactory</adminobject-class>
|
<adminobject-class>org.apache.activemq.ActiveMQXAConnectionFactory</adminobject-class>
|
||||||
<config-property>
|
<config-property>
|
||||||
<config-property-name>brokerURL</config-property-name>
|
<config-property-name>brokerURL</config-property-name>
|
||||||
|
@ -220,6 +219,5 @@
|
||||||
</config-property>
|
</config-property>
|
||||||
</adminobject>
|
</adminobject>
|
||||||
|
|
||||||
|
|
||||||
</resourceadapter>
|
</resourceadapter>
|
||||||
</connector>
|
</connector>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
xmlns="http://www.springframework.org/schema/beans"
|
xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:amq="http://activemq.apache.org/schema/core"
|
xmlns:amq="http://activemq.apache.org/schema/core"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||||
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
|
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
|
||||||
|
|
||||||
<!-- shutdown hook is disabled as RAR classloader may be gone at shutdown -->
|
<!-- shutdown hook is disabled as RAR classloader may be gone at shutdown -->
|
||||||
|
|
Loading…
Reference in New Issue