2016-10-31 9 views
1

Wildfly 10サーバに内蔵のActiveMQ ArtemisではなくStandalone ActiveMQを使用したいが、動作させることができない。私は、ActiveMQのリソースアダプタ「のActiveMQ-RAR-5.14.1.rar」を展開してきたとstandalone.xmlに私が作成したresource-adapter:私もサブシステム<subsystem xmlns="urn:jboss:domain:messaging-activemq:1.0">およびスタンドアロンから延長<extension module="org.wildfly.extension.messaging-activemq"/>を削除した ActiveMQ ArtemisをWildfly 10のスタンドアロンActiveMQに置き換えるにはどうしたらいいですか?

<subsystem xmlns="urn:jboss:domain:ejb3:4.0"> 
    <session-bean> 
     <stateless> 
      <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/> 
     </stateless> 
     <stateful default-access-timeout="5000" cache-ref="simple" passivation-disabled-cache-ref="simple"/> 
     <singleton default-access-timeout="5000"/> 
    </session-bean> 
    <mdb> 
     <resource-adapter-ref resource-adapter-name="activemq"/> 
     <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/> 
    </mdb> 
    ... 

<resource-adapter id="activemq"> 
<archive> 
    activemq-rar-5.14.1.rar 
</archive> 
<transaction-support>XATransaction</transaction-support> 
<config-property name="ServerUrl"> 
    tcp://localhost:61616 
</config-property> 
<config-property name="UserName"> 
    defaultUser 
</config-property> 
<config-property name="UseInboundSession"> 
    false 
</config-property> 
<config-property name="Password"> 
    defaultPassword 
</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> 
<admin-objects> 
    <admin-object class-name="org.apache.activemq.command.ActiveMQQueue" jndi-name="java:/jms/queue/MyTestQueue" use-java-context="true" pool-name="MyTestQueue"> 
     <config-property name="PhysicalName"> 
      MyTestQueue 
     </config-property> 
    </admin-object> 
    <admin-object class-name="org.apache.activemq.command.ActiveMQQueue" jndi-name="java:/jms/queue/MySecondTestQueue" use-java-context="true" pool-name="MySecondTestQUeue"> 
     <config-property name="PhysicalName"> 
      MySecondTestQueue 
     </config-property> 
    </admin-object>       
</admin-objects> 
</resource-adapter> 

.xml。

No message listener of type javax.jms.MessageListener found in resource adapter activemq 

は、私が何をしないのです:

私は今、自分のアプリケーションを展開しようとすると、私はというエラーを取得しますか?

答えて

0

私はこのようにアルテミスを使用していませんが、artemis 1.5.3とspring 4.xを統合しました。ここに私のアルテミス構成があります: 2つのノードがudpブロードキャストと通信しています。

あなたはプロジェクトをチェックアウトすることができます:https://github.com/mtorak/disttrans

乾杯

関連する問題