Hi,

It works fine after changing the cache level.

Thanks a lot!

On Wed, May 27, 2015 at 12:13 PM, Malaka Silva <[email protected]> wrote:

> Hi Eranda,
>
> Increase the transport.jms.CacheLevel to maximum and check.
>
> You should see registered consumers in activemq topic ui view.
>
> On Tue, May 26, 2015 at 10:20 PM, eranda rajapaksha <[email protected]>
> wrote:
>
>> Hi,
>>
>> I am trying to configure WSO2 ESB JMS inbound endpoint as a Topic
>> Listener with ActiveMQ broker.
>> I used following configuration on wso2esb-4.9.0-M8-SNAPSHOT and it worked
>> fine, but when I use the same configuration with wso2esb-4.9.0-ALPHA it
>> doesn't work. (it doesn't consume messages from the given ActiveMQ topic)
>> Is there any change that I have to do in the configuration with
>> wso2esb-4.9.0-ALPHA?
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>> <definitions xmlns="http://ws.apache.org/ns/synapse";>
>>>    <registry provider="org.wso2.carbon.mediation.registry.WSO2Registry">
>>>       <parameter name="cachableDuration">15000</parameter>
>>>    </registry>
>>>    <taskManager
>>> provider="org.wso2.carbon.mediation.ntask.NTaskTaskManager">
>>>       <parameter name="cachableDuration">15000</parameter>
>>>    </taskManager>
>>>    <sequence name="request" onError="fault">
>>>       <call>
>>>          <endpoint>
>>>             <address uri="
>>> http://localhost:9000/services/SimpleStockQuoteService";
>>>                      format="soap12"/>
>>>          </endpoint>
>>>       </call>
>>>       <drop/>
>>>    </sequence>
>>>    <sequence name="fault">
>>>       <log level="full">
>>>          <property name="MESSAGE" value="Executing default
>>> &#34;fault&#34; sequence"/>
>>>          <property name="ERROR_CODE"
>>> expression="get-property('ERROR_CODE')"/>
>>>          <property name="ERROR_MESSAGE"
>>> expression="get-property('ERROR_MESSAGE')"/>
>>>       </log>
>>>       <drop/>
>>>    </sequence>
>>>    <sequence name="main">
>>>       <log level="full"/>
>>>       <drop/>
>>>    </sequence>
>>>    <inboundEndpoint name="jms_inbound"
>>>                     sequence="request"
>>>                     onError="fault"
>>>                     protocol="jms"
>>>                     suspend="false">
>>>       <parameters>
>>>          <parameter name="interval">1000</parameter>
>>>          <parameter
>>> name="transport.jms.Destination">exampleTopic</parameter>
>>>          <parameter name="transport.jms.CacheLevel">1</parameter>
>>>          <parameter
>>> name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory</parameter>
>>>          <parameter name="sequential">true</parameter>
>>>          <parameter
>>> name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter>
>>>          <parameter
>>> name="java.naming.provider.url">tcp://localhost:61616</parameter>
>>>          <parameter
>>> name="transport.jms.SessionAcknowledgement">AUTO_ACKNOWLEDGE</parameter>
>>>          <parameter
>>> name="transport.jms.SessionTransacted">false</parameter>
>>>          <parameter
>>> name="transport.jms.ConnectionFactoryType">topic</parameter>
>>>       </parameters>
>>>    </inboundEndpoint>
>>> </definitions>
>>
>>
>> Thank you!
>>
>> --
>> *Eranda Rajapakshe*
>> Computer Science and Engineering Undergraduate,
>> University of Moratuwa.
>> Tel : +94784822608
>> Email : [email protected] <[email protected]>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> <http://wso2.com/about/team/malaka-silva/>
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
*Eranda Rajapakshe*
Computer Science and Engineering Undergraduate,
University of Moratuwa.
Tel : +94784822608
Email : [email protected] <[email protected]>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to