分享

关于JBOSS ESB的部署问题

 hehffyy 2010-08-12
刚刚接触JBOSS ESB 4.5, 按照自带的helloworld Sample,  
新建NewESB工程, 并在在jboss-esb.xml文件配置ESB消息:
  ...
<providers>
  <jms-provider connection-factory="ConnectionFactory" name="JBossMQ">
  <jms-bus busid="GwChannel">
  <jms-message-filter dest-name="queue/helloworld_gateway" dest-type="QUEUE"/>
  </jms-bus>
  <jms-bus busid="EsbChannel">
  <jms-message-filter dest-name="queue/helloworld_esb" dest-type="QUEUE"/>
  </jms-bus>
  </jms-provider>
</providers>
  ....

在deployment.xml中:
<jbossesb-deployment>
<depends>jboss.esb.quickstart.destination:service=Queue,name=helloworld_esb</depends>  
<depends>jboss.esb.quickstart.destination:service=Queue,name=helloworld_gateway</depends>
</jbossesb-deployment>
在jbmq-queue-service.xml中写:
<server>
  <mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.esb.quickstart.destination:service=Queue,name=helloworld_esb">
  <depends optional-attribute-name="DestinationManager">
  jboss.mq:service=DestinationManager
  </depends>
  </mbean>
  <mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.esb.quickstart.destination:service=Queue,name=helloworld_gateway">
  <depends optional-attribute-name="DestinationManager">
  jboss.mq:service=DestinationManager
  </depends>
  </mbean>
</server>


用JBOSS TOOLS 3.0部署NewESB时出现以下问题:

05:33:40,937 INFO [JBoss4ESBDeployer] create esb service, NewESB.esb
05:33:40,978 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- MBeans waiting for other MBeans ---
ObjectName: jboss.esb:deployment=NewESB.esb
  State: NOTYETINSTALLED
  I Depend On:
  jboss.esb:deployment=jbossesb.esb
  jboss.esb.quickstart.destination:service=Queue,name=helloworld_esb
  jboss.esb.quickstart.destination:service=Queue,name=helloworld_gateway

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  ObjectName: jboss.esb.quickstart.destination:service=Queue,name=helloworld_esb
  State: NOTYETINSTALLED
  Depends On Me:
  jboss.esb:deployment=NewESB.esb
  到底是什么问题,是不是服务器上哪里没有配置?请大家帮忙(JBoss ESB已安装成功, 可以用Ant运行Sample)

bennyparlo 发表于 2010-5-20 09:39

因为jbossesb-server-4.5.GA已经默认将jboss-4.2.3.GA中自带的mq替换成jboss-messaging,所以相应的queue定义也需要改换,如:
        <mbean code="org.jboss.jms.server.destination.QueueService"
                name="jboss.messaging.destination:service=Queue,name=distribution_request_gateway"
                xmbean-dd="xmdesc/Queue-xmbean.xml">
                <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
                </depends>
                <depends>jboss.messaging:service=PostOffice</depends>
        </mbean>

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多