我在尝试启动 Jboss 7.1 时看到了上述错误。请帮忙!注意,文件 activemq-rar.rar 位于standalone\deployments 目录中。此外,这是我对standalone\configuration\standalone.xml 文件所做的相关更新(请注意以下是缩写的.. xml 格式正确)。另请注意,我能够使此设置与 JBoss 6 一起使用。
<subsystem xmlns="urn:jboss:domain:ejb3:5.0">
<mdb>
<resource-adapter-ref resource-adapter-name="activemq-rar.rar"/>
<bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>
</mdb>
<subsystem xmlns="urn:jboss:domain:resource-adapters:5.0">
<resource-adapters>
<resource-adapter id="activemq-rar.rar">
<archive>
activemq-rar.rar
</archive>
<transaction-support>XATransaction</transaction-support>
<config-property name="ServerUrl">
tcp://localhost:61616?jms.rmIdFromConnectionId=true
</config-property>
<config-property name="UserName">
admin
</config-property>
<config-property name="Password">
admin
</config-property>
<connection-definitions>
<connection-definition class-name="org.apache.activemq.ra.ActiveMQManagedConnectionFactory" 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>defaultUser</user-name>
<password>defaultPassword</password>
</recover-credential>
</recovery>
</connection-definition>
</connection-definitions>