2014-10-29 55 views
0

我成功将WSO2 Message Broker配置为JMS服务器。我已经配置WSO2 ESB将消息发送到队列,并且我可以看到使用消息以MB为单位创建了此队列。使用Process Server从WSO2 Message Broker接收消息

现在,我想在Process Server中使用这些消息并启动一个BPEL流程。我已经将所需的库添加到ESB和BPS中的components/lib中,并在两者中创建了相同的jndi.properties。两个ESB和BPEL的网址是:

jms:/newMLECaseQueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&java.naming.provider.url=repository/conf/jndi.properties&transport.jms.DestinationType=queue 

我已经测试和ActiveMQ类似的配置,并且有BPEL成功地拿起消息。在MB中它似乎不起作用,而日志记录提到JMS开始监听:

Started to listen on destination : newMLECaseQueue of type queue for service newMLECaseQueue {org.apache.axis2.transport.jms.JMSListener} 

这里有什么可能是错误的?

回答

0

看来,每个队列必须使用jndi.properties进行注册:用线加入队列时:

queue.newMLECaseQueue = newMLECaseQueue 

这一切开始工作。