【问题标题】:Receiving messages from WSO2 Message Broker with Process Server使用 Process Server 从 WSO2 消息代理接收消息
【发布时间】:2014-10-31 22:45:54
【问题描述】:

我成功地将 WSO2 Message Broker 配置为 JMS 服务器。我已将 WSO2 ESB 配置为将消息发送到队列,我可以看到该队列以 MB 为单位创建并包含消息。

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

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}

这里有什么问题?

【问题讨论】:

    标签: jms wso2 server


    【解决方案1】:

    似乎每个队列都必须使用jndi.properties注册:添加队列时使用该行:

    queue.newMLECaseQueue = newMLECaseQueue
    

    一切都开始起作用了。

    【讨论】:

      猜你喜欢
      • 2015-07-17
      • 1970-01-01
      • 1970-01-01
      • 2016-03-07
      • 2017-02-12
      • 1970-01-01
      • 2014-05-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多