【问题标题】:Unable to send a JMS message using WSO2 DSS output event trigger无法使用 WSO2 DSS 输出事件触发器发送 JMS 消息
【发布时间】:2015-10-16 02:51:18
【问题描述】:

我正在使用 WSO2 DSS 3.2.1 并尝试使用以下事件接收器 URL 配置输出事件触发器:

jms:/ MyQueueName?transport.jms.DestinationType=queue&transport.jms.ContentTypeProperty=Content-Type&java.naming.provider.url=tcp://10.11.11.15:61616&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&transport.jms.ConnectionFactoryType=queue&transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory

但无法使 WSO2 DSS 按预期方式工作:

TID: [0] [DSS] [2014-10-04 05:33:55,576]  INFO {org.apache.axis2.deployment.DeploymentEngine} -  Deploying Web service: EventingSample.dbs - file:/C:/WSO2DS~1.1/bin/../repository/deployment/server/dataservices/samples/EventingSample.dbs {org.apache.axis2.deployment.DeploymentEngine}

TID: [0] [DSS] [2014-10-04 05:34:06,371] ERROR {org.apache.axis2.description.ClientUtils} -  The system cannot infer the transport information from the jms:/MyQueueName?transport.jms.DestinationType=queue&transport.jms.ContentTypeProperty=Content-Type&java.naming.provider.url=tcp://10.11.11.15:61616&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&transport.jms.ConnectionFactoryType=queue&transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory URL. {org.apache.axis2.description.ClientUtils}

TID: [0] [DSS] [2014-10-04 05:34:06,371] ERROR {org.wso2.carbon.event.ws.internal.notify.WSEventDispatcher} -  Unable to send message {org.wso2.carbon.event.ws.internal.notify.WSEventDispatcher}
org.apache.axis2.AxisFault: The system cannot infer the transport information from the jms:/ MyQueueName?transport.jms.DestinationType=queue&transport.jms.ContentTypeProperty=Content-Type&java.naming.provider.url=tcp://10.11.11.15:61616&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&transport.jms.ConnectionFactoryType=queue&transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory URL.
    at org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:81)
    at org.apache.axis2.client.OperationClient.prepareMessageContext(OperationClient.java:288)
    at org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:249)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
    at org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:511)
    at org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:488)
    at org.wso2.carbon.event.ws.internal.notify.WSEventDispatcher.sendNotification(WSEventDispatcher.java:96)
    at org.wso2.carbon.event.ws.internal.notify.WSEventDispatcher.notify(WSEventDispatcher.java:66)
    at org.wso2.carbon.event.core.internal.notify.CarbonNotificationManager.sendNotification(CarbonNotificationManager.java:62)
    at org.wso2.carbon.event.core.internal.delivery.Worker.run(Worker.java:52)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

我已检查/确认 Active MQ 端没有任何问题,包括 IP 地址、端口号和队列名称。并且org.apache.axis2.transport.jms.JMSSender 也已启用。感谢您对此问题的任何帮助。

顺便说一句,我还使用了一个已经使用 WSO2 ESB 正确测试的有效 JMS 端点 URI,但在使用 WSO2 DSS 时仍然遇到相同的错误。在我看来,WSO2 DSS JMS 传输有问题。

【问题讨论】:

    标签: triggers jms wso2 dss


    【解决方案1】:

    出现上述错误是因为您在axis2.xml 中启用了org.apache.axis2.transport.jms.JMSSender,但没有在axis2-client.xml 中启用。要使用 jms 发送器,您需要在 axis2_client.xml 中启用 jms 传输。

    【讨论】:

      【解决方案2】:

      我已经用 WSO2 DSS 3.2.2 重新测试了相同的用例,并再次遇到相同的错误......一个有问题的产品......不建议认真使用。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-08-25
        • 1970-01-01
        • 2021-10-20
        • 2013-06-25
        • 1970-01-01
        相关资源
        最近更新 更多