简体   繁体   English

Apache ActiveMQ 5.16.3 和 WSO2 EI 6.5.0 中未显示消息详细信息

[英]Message Details are not shown in Apache ActiveMQ 5.16.3 with WSO2 EI 6.5.0

I'm using WSO2 EI 6.5.0 to send message to activemq 5.16.3.我正在使用 WSO2 EI 6.5.0 向 activemq 5.16.3 发送消息。 I have followed this blog steps to set up WSO2 EI and ActiveMQ.我已按照此博客步骤设置 WSO2 EI 和 ActiveMQ。

API Code: API 代码:

<?xml version="1.0" encoding="UTF-8"?>
<api context="/activemqsapi" name="ActiveMQAPI" xmlns="http://ws.apache.org/ns/synapse">
    <resource methods="POST">
        <inSequence>
            <log level="custom">
                <property name="===ActiveMQAPI" value="is called===="/>
            </log>
            <property name="OUT_ONLY" scope="default" type="STRING" value="true"/>
           <property name="FORCE_SC_ACCEPTED" value="true" scope="axis2"/>
            <send>
                <endpoint>
                    <address uri="jms:/WSO2EIQ?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=tcp://localhost:61616&amp;transport.jms.DestinationType=queue">
                        <suspendOnFailure>
                            <initialDuration>-1</initialDuration>
                            <progressionFactor>1</progressionFactor>
                        </suspendOnFailure>
                        <markForSuspension>
                            <retriesBeforeSuspension>0</retriesBeforeSuspension>
                        </markForSuspension>
                    </address>
                </endpoint>
            </send> 
          
        </inSequence>
        <outSequence/>
        <faultSequence/>
    </resource>
</api>

Message Details are shown like below in activeMQ.消息详细信息在 activeMQ 中如下所示。

Failed to build body from content. Serializable class not available to broker. Reason: java.lang.ClassNotFoundException: org.apache.synapse.message.store.impl.commons.StorableMessage

As per this question i have added property in %ACTIVEMQ_HOME%\bin\win64\wrapper.conf which also not working.根据这个问题,我在 %ACTIVEMQ_HOME%\bin\win64\wrapper.conf 中添加了属性,这也不起作用。

wrapper.java.additional.13=Dorg.apache.activemq.SERIALIZABLE_PACKAGES="*"

包装文件

Can anyone help me on this?谁可以帮我这个事?

As per this doc , added below line in windows.bat file which resolved my issue.根据此文档,在 windows.bat 文件中添加了以下行,这解决了我的问题。

org.apache.activemq.SERIALIZABLE_PACKAGES="*"

Now I can able to see newly posted message in active-mq console.现在我可以在 active-mq 控制台中看到新发布的消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM