| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- |
| 3 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 4 |
contributor license agreements. See the NOTICE file distributed with |
| 5 |
this work for additional information regarding copyright ownership. |
| 6 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 7 |
(the "License"); you may not use this file except in compliance with |
| 8 |
the License. You may obtain a copy of the License at |
| 9 |
|
| 10 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 11 |
|
| 12 |
Unless required by applicable law or agreed to in writing, software |
| 13 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 14 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 |
See the License for the specific language governing permissions and |
| 16 |
limitations under the License. |
| 17 |
--> |
| 18 |
|
| 19 |
<connector xmlns="http://java.sun.com/xml/ns/j2ee" |
| 20 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 21 |
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee |
| 22 |
http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd" |
| 23 |
version="1.5"> |
| 24 |
<description>ActiveMQ inbound and outbound JMS ResourceAdapter</description> |
| 25 |
<display-name>ActiveMQ JMS Resource Adapter</display-name> |
| 26 |
<vendor-name>activemq.org</vendor-name> |
| 27 |
<eis-type>JMS 1.1</eis-type> |
| 28 |
<resourceadapter-version>1.0</resourceadapter-version> |
| 29 |
<license> |
| 30 |
<description> |
| 31 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 32 |
contributor license agreements. See the NOTICE file distributed with |
| 33 |
this work for additional information regarding copyright ownership. |
| 34 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 35 |
(the "License"); you may not use this file except in compliance with |
| 36 |
the License. You may obtain a copy of the License at |
| 37 |
|
| 38 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 39 |
|
| 40 |
Unless required by applicable law or agreed to in writing, software |
| 41 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 42 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 43 |
See the License for the specific language governing permissions and |
| 44 |
limitations under the License. |
| 45 |
</description> |
| 46 |
<license-required>true</license-required> |
| 47 |
</license> |
| 48 |
<resourceadapter> |
| 49 |
<resourceadapter-class>org.apache.activemq.ra.ActiveMQResourceAdapter</resourceadapter-class> |
| 50 |
<config-property> |
| 51 |
<description> |
| 52 |
The URL to the ActiveMQ server that you want this connection to connect to. If using |
| 53 |
an embedded broker, this value should be 'vm://localhost'. |
| 54 |
</description> |
| 55 |
<config-property-name>ServerUrl</config-property-name> |
| 56 |
<config-property-type>java.lang.String</config-property-type> |
| 57 |
<config-property-value>tcp://localhost:61616</config-property-value> |
| 58 |
<!-- <config-property-value>vm://localhost</config-property-value> --> |
| 59 |
</config-property> |
| 60 |
<config-property> |
| 61 |
<description>The default user name that will be used to establish connections to the ActiveMQ server.</description> |
| 62 |
<config-property-name>UserName</config-property-name> |
| 63 |
<config-property-type>java.lang.String</config-property-type> |
| 64 |
<config-property-value>defaultUser</config-property-value> |
| 65 |
</config-property> |
| 66 |
<config-property> |
| 67 |
<description>The default password that will be used to log the default user into the ActiveMQ server.</description> |
| 68 |
<config-property-name>Password</config-property-name> |
| 69 |
<config-property-type>java.lang.String</config-property-type> |
| 70 |
<config-property-value>defaultPassword</config-property-value> |
| 71 |
</config-property> |
| 72 |
<config-property> |
| 73 |
<description>The client id that will be set on the connection that is established to the ActiveMQ server.</description> |
| 74 |
<config-property-name>Clientid</config-property-name> |
| 75 |
<config-property-type>java.lang.String</config-property-type> |
| 76 |
</config-property> |
| 77 |
<config-property> |
| 78 |
<description>Boolean to configure if outbound connections should reuse the inbound connection's session for sending messages.</description> |
| 79 |
<config-property-name>UseInboundSession</config-property-name> |
| 80 |
<config-property-type>java.lang.Boolean</config-property-type> |
| 81 |
<config-property-value>false</config-property-value> |
| 82 |
</config-property> |
| 83 |
<config-property> |
| 84 |
<description>The location of a Trust Store to use with the Connection Factory</description> |
| 85 |
<config-property-name>TrustStore</config-property-name> |
| 86 |
<config-property-type>java.lang.String</config-property-type> |
| 87 |
</config-property> |
| 88 |
<config-property> |
| 89 |
<description>The password for the Trust Store</description> |
| 90 |
<config-property-name>TrustStorePassword</config-property-name> |
| 91 |
<config-property-type>java.lang.String</config-property-type> |
| 92 |
</config-property> |
| 93 |
<config-property> |
| 94 |
<description>The location of a Key Store to use with the Connection Factory</description> |
| 95 |
<config-property-name>KeyStore</config-property-name> |
| 96 |
<config-property-type>java.lang.String</config-property-type> |
| 97 |
</config-property> |
| 98 |
<config-property> |
| 99 |
<description>The password for the Key Store</description> |
| 100 |
<config-property-name>KeyStorePassword</config-property-name> |
| 101 |
<config-property-type>java.lang.String</config-property-type> |
| 102 |
</config-property> |
| 103 |
<config-property> |
| 104 |
<description>The Key password for the Key Store</description> |
| 105 |
<config-property-name>KeyStoreKeyPassword</config-property-name> |
| 106 |
<config-property-type>java.lang.String</config-property-type> |
| 107 |
</config-property> |
| 108 |
|
| 109 |
<!-- NOTE disable the following property if you do not wish to deploy an embedded broker --> |
| 110 |
<config-property> |
| 111 |
<description> |
| 112 |
Sets the XML configuration file used to configure the embedded ActiveMQ broker via |
| 113 |
Spring if using embedded mode. |
| 114 |
|
| 115 |
BrokerXmlConfig is the filename which is assumed to be on the classpath unless |
| 116 |
a URL is specified. So a value of foo/bar.xml would be assumed to be on the |
| 117 |
classpath whereas file:dir/file.xml would use the file system. |
| 118 |
Any valid URL string is supported. |
| 119 |
</description> |
| 120 |
<config-property-name>BrokerXmlConfig</config-property-name> |
| 121 |
<config-property-type>java.lang.String</config-property-type> |
| 122 |
<config-property-value></config-property-value> |
| 123 |
<!-- |
| 124 |
To use the broker-config.xml from the root for the RAR |
| 125 |
<config-property-value>xbean:broker-config.xml</config-property-value> |
| 126 |
To use an external file or url location |
| 127 |
<config-property-value>xbean:file:///amq/config/jee/broker-config.xml</config-property-value> |
| 128 |
--> |
| 129 |
</config-property> |
| 130 |
|
| 131 |
<outbound-resourceadapter> |
| 132 |
<connection-definition> |
| 133 |
<managedconnectionfactory-class>org.apache.activemq.ra.ActiveMQManagedConnectionFactory</managedconnectionfactory-class> |
| 134 |
<connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface> |
| 135 |
<connectionfactory-impl-class>org.apache.activemq.ra.ActiveMQConnectionFactory</connectionfactory-impl-class> |
| 136 |
<connection-interface>javax.jms.Connection</connection-interface> |
| 137 |
<connection-impl-class>org.apache.activemq.ra.ManagedConnectionProxy</connection-impl-class> |
| 138 |
</connection-definition> |
| 139 |
<connection-definition> |
| 140 |
<managedconnectionfactory-class>org.apache.activemq.ra.ActiveMQManagedConnectionFactory</managedconnectionfactory-class> |
| 141 |
<connectionfactory-interface>javax.jms.QueueConnectionFactory</connectionfactory-interface> |
| 142 |
<connectionfactory-impl-class>org.apache.activemq.ra.ActiveMQConnectionFactory</connectionfactory-impl-class> |
| 143 |
<connection-interface>javax.jms.QueueConnection</connection-interface> |
| 144 |
<connection-impl-class>org.apache.activemq.ra.ManagedConnectionProxy</connection-impl-class> |
| 145 |
</connection-definition> |
| 146 |
<connection-definition> |
| 147 |
<managedconnectionfactory-class>org.apache.activemq.ra.ActiveMQManagedConnectionFactory</managedconnectionfactory-class> |
| 148 |
<connectionfactory-interface>javax.jms.TopicConnectionFactory</connectionfactory-interface> |
| 149 |
<connectionfactory-impl-class>org.apache.activemq.ra.ActiveMQConnectionFactory</connectionfactory-impl-class> |
| 150 |
<connection-interface>javax.jms.TopicConnection</connection-interface> |
| 151 |
<connection-impl-class>org.apache.activemq.ra.ManagedConnectionProxy</connection-impl-class> |
| 152 |
</connection-definition> |
| 153 |
<transaction-support>XATransaction</transaction-support> |
| 154 |
<authentication-mechanism> |
| 155 |
<authentication-mechanism-type>BasicPassword</authentication-mechanism-type> |
| 156 |
<credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface> |
| 157 |
</authentication-mechanism> |
| 158 |
<reauthentication-support>false</reauthentication-support> |
| 159 |
</outbound-resourceadapter> |
| 160 |
<inbound-resourceadapter> |
| 161 |
<messageadapter> |
| 162 |
<messagelistener> |
| 163 |
<messagelistener-type>javax.jms.MessageListener</messagelistener-type> |
| 164 |
<activationspec> |
| 165 |
<activationspec-class>org.apache.activemq.ra.ActiveMQActivationSpec</activationspec-class> |
| 166 |
|
| 167 |
<required-config-property> |
| 168 |
<config-property-name>destination</config-property-name> |
| 169 |
</required-config-property> |
| 170 |
<required-config-property> |
| 171 |
<config-property-name>destinationType</config-property-name> |
| 172 |
</required-config-property> |
| 173 |
|
| 174 |
</activationspec> |
| 175 |
</messagelistener> |
| 176 |
</messageadapter> |
| 177 |
</inbound-resourceadapter> |
| 178 |
<adminobject> |
| 179 |
<adminobject-interface>javax.jms.Queue</adminobject-interface> |
| 180 |
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobject-class> |
| 181 |
<config-property> |
| 182 |
<config-property-name>PhysicalName</config-property-name> |
| 183 |
<config-property-type>java.lang.String</config-property-type> |
| 184 |
</config-property> |
| 185 |
</adminobject> |
| 186 |
<adminobject> |
| 187 |
<adminobject-interface>javax.jms.Topic</adminobject-interface> |
| 188 |
<adminobject-class>org.apache.activemq.command.ActiveMQTopic</adminobject-class> |
| 189 |
<config-property> |
| 190 |
<config-property-name>PhysicalName</config-property-name> |
| 191 |
<config-property-type>java.lang.String</config-property-type> |
| 192 |
</config-property> |
| 193 |
</adminobject> |
| 194 |
<adminobject> |
| 195 |
<adminobject-interface>javax.jms.ConnectionFactory</adminobject-interface> |
| 196 |
<adminobject-class>org.apache.activemq.ActiveMQConnectionFactory</adminobject-class> |
| 197 |
<config-property> |
| 198 |
<config-property-name>brokerUrl</config-property-name> |
| 199 |
<config-property-type>java.lang.String</config-property-type> |
| 200 |
</config-property> |
| 201 |
</adminobject> |
| 202 |
<adminobject> |
| 203 |
<adminobject-interface>javax.jms.ConnectionFactory</adminobject-interface> |
| 204 |
<adminobject-class>org.apache.activemq.pool.XaPooledConnectionFactory</adminobject-class> |
| 205 |
<config-property> |
| 206 |
<config-property-name>brokerUrl</config-property-name> |
| 207 |
<config-property-type>java.lang.String</config-property-type> |
| 208 |
</config-property> |
| 209 |
<config-property> |
| 210 |
<config-property-name>tmFromJndi</config-property-name> |
| 211 |
<config-property-type>java.lang.Boolean</config-property-type> |
| 212 |
</config-property> |
| 213 |
</adminobject> |
| 214 |
<adminobject> |
| 215 |
<adminobject-interface>javax.jms.XAConnectionFactory</adminobject-interface> |
| 216 |
<adminobject-class>org.apache.activemq.ActiveMQXAConnectionFactory</adminobject-class> |
| 217 |
<config-property> |
| 218 |
<config-property-name>brokerURL</config-property-name> |
| 219 |
<config-property-type>java.lang.String</config-property-type> |
| 220 |
</config-property> |
| 221 |
</adminobject> |
| 222 |
|
| 223 |
|
| 224 |
</resourceadapter> |
| 225 |
</connector> |