Re: [Dev] Configuration for MB Topic Acknowledgement

2016-08-08 Thread Ramith Jayasinghe
may be this would be of help:
https://docs.wso2.com/display/ESB490/JMS+Transactions

On Mon, Aug 8, 2016 at 2:09 PM, Tharindu Edirisinghe 
wrote:

> 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.
>
>
> 
>
>   
>
>  contentType
>
>  application/xml
>
>   
>
>
>
>
> myTopicConnectionFactory
>
>topic
>
>true
>
>Task.name
>
>sub-
> name
>
>consumer
>
>
> subId-Chorus_Task_TopicSubscriber_For_GTsub-name
>
> Appreciate your feedback on this.
>
> Best Regards,
> TharinduE
>
> On Mon, Aug 8, 2016 at 1:13 PM, Indika Sampath  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 > > 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
>



-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 772534930
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Configuration for MB Topic Acknowledgement

2016-08-08 Thread Tharindu Edirisinghe
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.




  

 contentType

 application/xml

  

   

   myTopicConnectionFactory

   topic

   true

   Task.name

   sub-name

   consumer

   subId-Chorus_Task_TopicSubscriber_For_GTsub-name

Appreciate your feedback on this.

Best Regards,
TharinduE

On Mon, Aug 8, 2016 at 1:13 PM, Indika Sampath  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 
> 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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Configuration for MB Topic Acknowledgement

2016-08-08 Thread Indika Sampath
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 
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/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Configuration for MB Topic Acknowledgement

2016-08-08 Thread Tharindu Edirisinghe
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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev