2011-12-21 75 views
2

我试图将运行jboss3.x的系统升级到jboss5.1。 系统使用MDB在WebSphere MQ中监听队列,所以'消息驱动'通过'configuration-name'连接到Container /'invoker-proxy-binding' - 连接远程队列的标准方式 - I猜测。将JBoss 5.1 MDB连接到Websphere MQ队列

JBoss 5.1的问题是jboss_5_1.xsd没有configuration-nameinvoker-proxy-binding。所有关于连接JBoss 5.1 MDB连接到远程队列的例子,到目前为止,我没有使用jboss_5_1.xsd,而是使用jboss_5_0.dtd

我使用jboss_5_0.dtd时错过了什么,它应该如何在5.1中进行配置?

回答

0

嗯,我知道这是一个有点老问题,但无论如何,我有它在5.1工作使用中定义的激活配置EJB3拦截器-aop.xml文件

<domain name="zzz.ejb.mdb.MessageReceiver" extends="Message Driven Bean" inheritBindings="true"> 
    <!-- annotation must be documented on one line without CR/LF --> 
    <annotation expr="!class(@org.jboss.ejb3.annotation.DefaultActivationSpecs)"> 
         @org.jboss.ejb3.annotation.DefaultActivationSpecs ({ @javax.ejb.ActivationConfigProperty(propertyName = "messagingType", propertyValue="javax.jms.MessageListener"), @javax.ejb.ActivationConfigProperty(propertyName = "destinationType",propertyValue = "javax.jms.Queue"), @javax.ejb.ActivationConfigProperty(propertyName = "destination", propertyValue = "zzz/jms/LocalQueue"), @javax.ejb.ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "true"), @javax.ejb.ActivationConfigProperty(propertyName = "queueManager", propertyValue = "ZZZ.QMGR"), @javax.ejb.ActivationConfigProperty(propertyName = "hostName", propertyValue = "172.21.100.10"), @javax.ejb.ActivationConfigProperty(propertyName = "port", propertyValue = "1415"), @javax.ejb.ActivationConfigProperty(propertyName = "transportType", propertyValue = "CLIENT"), @javax.ejb.ActivationConfigProperty(propertyName = "maxPoolDepth", propertyValue = "1")}) 
    </annotation> 
</domain> 

注意,注释是在一条线。

此外,我已为队列(像这样)定义的MBean:

 <mbean code="org.jboss.resource.deployment.AdminObject" name="jboss.jca:service=WASDestination,name=zzz/jms/LocalQueue"> 
      <attribute name="JNDIName">zzz/jms/LocalQueue</attribute> 
      <depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'</depends> 
      <attribute name="Type">javax.jms.Queue</attribute> 
      <attribute name="Properties"> 
        baseQueueManagerName=ZZZ.QMGR 
        baseQueueName=ZZZ.QUEUE 
      </attribute> 
    </mbean> 

我希望这有助于

相关问题