刚刚接触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) 因为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> |
|