Hi Indika,
Thanks for the quick response.
The subscriber is an ESB proxy service and it needs to send the
acknowledgement to the MB Topic after finishing the subscriber work. So how
to send the acknowledge from the proxy service ?
Currently, the proxy subscriber has following configuration.
<parameter name="transport.jms.ContentType">
<rules>
<jmsProperty>contentType</jmsProperty>
<default>application/xml</default>
</rules>
</parameter>
<parameter
name="transport.jms.ConnectionFactory">myTopicConnectionFactory</parameter>
<parameter name="transport.jms.DestinationType">topic</parameter>
<parameter name="transport.jms.SubscriptionDurable">true</parameter>
<parameter name="transport.jms.Destination">Task.name</parameter>
<parameter
name="transport.jms.DurableSubscriberName">sub-name</parameter>
<parameter name="transport.jms.CacheLevel">consumer</parameter>
<parameter
name="transport.jms.DurableSubscriberClientID">subId-Chorus_Task_TopicSubscriber_For_GTsub-name</parameter>
Appreciate your feedback on this.
Best Regards,
TharinduE
On Mon, Aug 8, 2016 at 1:13 PM, Indika Sampath <[email protected]> wrote:
> Hi Tharindu,
>
> Message acknowledge handle at client side, not in the server side. In your
> JMS program, set acknowledgement mode to CLIENT_ACKNOWLEDGE
>
> queueSession = queueConnection.createQueueSession(false,
> QueueSession.CLIENT_ACKNOWLEDGE);
>
> When client receives message, do the acknowlegment explicitly.
>
> TextMessage message = (TextMessage) consumer.receive();
> message.acknowledge();
>
> Cheers!
>
>
> On Mon, Aug 8, 2016 at 12:55 PM, Tharindu Edirisinghe <[email protected]>
> wrote:
>
>> Hi Devs,
>>
>> By default, $subject is *AUTO_ACKNOWLEDGE* as mentioned in WSO2
>> documentation.
>>
>> I need to change this behavior to keep messages until it gets the
>> acknowledgment for that.
>>
>> What are the changes I need to do? Is it only the config change in
>> axis2.xml or need to change in subscriber as well ?
>>
>> Thanks,
>> TharinduE
>>
>> --
>>
>> Tharindu Edirisinghe
>> Senior Software Engineer | WSO2 Inc
>> Platform Security Team
>> Blog : tharindue.blogspot.com
>> mobile : +94 775181586
>>
>
>
>
> --
> Indika Sampath
> Senior Software Engineer
> WSO2 Inc.
> http://wso2.com
>
> Phone: +94 716 424 744
> Blog: http://indikasampath.blogspot.com/
>
>
--
Tharindu Edirisinghe
Senior Software Engineer | WSO2 Inc
Platform Security Team
Blog : tharindue.blogspot.com
mobile : +94 775181586
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev