JBoss 4.2.3与ActiveMQ 5.15.0集成

时间:2018-04-03 20:52:42

标签: java jboss activemq

我有一台需要与ActiveMQ集成的JBoss 4.2.3应用服务器(实际上是围绕ActiveMQ 5.15.0的AWS MQ)。这是一个非常古老的JBoss版本,我能够使我的应用程序与Java 8一起工作,这是最新的ActiveMQ需要的(我相信它是Java 7 +)。

需要更换嵌入式JBossMQ并使用更新的有效消息代理(JBossMQ有很多问题)。我配置了activemq-ra.rar并将其放在jboss / server / default / deploy / jms目录中。

然而,在启动时,"空" JBoss(没有自定义的WAR或EAR应用程序),我得到了:

--- MBeans waiting for other MBeans ---
ObjectName: jboss.jca:service=ManagedConnectionFactory,name=JmsXA
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: couldn't get 
oldRarDeployment! 
jboss.jca:service=RARDeployment,name='activemq.rar'; - nested 
throwable: (org.jboss.deployment.DeploymentException: 
ConnectionDefinition 
'org.apache.activemq.ra.ActiveMQManagedConnectionFactory' not found 
in rar 'activemq.rar')
  I Depend On:
    jboss.jca:service=RARDeployment,name='activemq.rar'
  Depends On Me:
    jboss.jca:service=ManagedConnectionPool,name=JmsXA

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:service=ManagedConnectionFactory,name=JmsXA
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: couldn't get         
oldRarDeployment! 
jboss.jca:service=RARDeployment,name='activemq.rar'; - nested 
throwable: (org.jboss.deployment.DeploymentException: 
ConnectionDefinition 
'org.apache.activemq.ra.ActiveMQManagedConnectionFactory' not found 
in rar 'activemq.rar')
  I Depend On: 
    jboss.jca:service=RARDeployment,name='activemq.rar'
  Depends On Me:
    jboss.jca:service=ManagedConnectionPool,name=JmsXA

我解压缩了RAR文件的内容,我看到了 activemq-ra-5.15.0.jar ,它在解压后确实包含了org.apache.activemq.ra.ActiveMQManagedConnectionFactory类。< / p>

我在这里错过了什么吗?

1 个答案:

答案 0 :(得分:0)

我的ActiveMQ 5.11 rar文件包含:

Build-Jdk: 1.7.0_85

如果您的JCA rar文件具有Java 7依赖关系,您将无法在JBoss 4.2.3上使用它