You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by soni swapna <sw...@cisco.com> on 2009/11/27 11:59:13 UTC
how to set message RetransmissionInterval when engaging sandesha
Hi Sandesha Team,
Could you please let me know how to seet the RetransmissionInterval
time when engaging sandesha? And what value to set to
setUseSeparateListener() function when using sendReceive() method to invoke
a service. Its little urgent. Please response as soon as possible.
Thanks,
Swapna Soni.
--
View this message in context: http://old.nabble.com/how-to-set-message-RetransmissionInterval-when-engaging-sandesha-tp26540828p26540828.html
Sent from the Apache Sandesha mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org
Re: how to set message RetransmissionInterval when engaging sandesha
Posted by Andrew K Gatford <GA...@uk.ibm.com>.
The retransmission time is set by the following:
<sandesha2:RetransmissionInterval>6000</sandesha2:RetransmissionInterval>
This indicates a resend every six seconds. Perhaps make it 60000 which
will retry once a minute.
If this doesn't work, change the following in
MessageRetransmissionAdjuster:
private static SenderBean adjustNextRetransmissionTime(SenderBean
retransmitterBean, SandeshaPolicyBean propertyBean) throws
SandeshaException {
int count = retransmitterBean.getSentCount();
long baseInterval =
propertyBean.getRetransmissionInterval();
Add a System.out.println(""+baseInterval);
That will tell you what Sandesha thinks is the retransmission interval
then we might be able to work backwards to see where it got that value
from.
Andrew Gatford
Technical Project Lead
Websphere ESB Foundation Technologies
Hursley MP211
IBM United Kingdom Laboratories, Hursley Park, Winchester, SO21 2JN
Telephone :
Internal (7) 245743
External 01962 815743
Internet : gatfora@uk.ibm.com
From:
soni swapna <sw...@cisco.com>
To:
sandesha-dev@ws.apache.org
Date:
01/12/2009 11:56
Subject:
Re: how to set message RetransmissionInterval when engaging sandesha
Hi Team,
Can anyone please help me in resolving this issue.
Thanks,
Swapna Soni.
Sara Mitchell wrote:
>
> Hello Soni,
>
> I'd suggest eliminating your custom module from the problem first.
Either
> remove them from the flow to make sure that everything else is working
> fine
> or debug the flow through that inflowhandler to see what is happening.
>
> Thanks,
> Sara
>
> 2009/11/27 Swapna Soni <sw...@cisco.com>
>
>> Hello Sara,
>>
>> I am still facing the same issue. I have engaged the sandesha
in
>> client program and in service's service.xml. I have custom modules also
>> engaged and its inflowHandler and outflowHandler takes little time to
>> complete the executing. In meantime client side sandesha is resending
the
>> request and at the end client program is getting two responses in one
>> envelope. But response is coming only till inflowhandler, its not going
>> till
>> client program. Could you please suggest me what is the issue and how
>> could
>> i resolve it.
>>
>> Thanks,
>> Swapna Soni.
>>
>> ------------------------------
>> *From:* Sara Mitchell [mailto:saralmitchell@googlemail.com]
>> *Sent:* Friday, November 27, 2009 5:05 PM
>> *To:* soni swapna
>> *Subject:* Re: how to set message RetransmissionInterval when engaging
>> sandesha
>>
>> Hello Soni,
>>
>> The Sandesha docs explain where to set the RetransmissionInterval in
the
>> module.xml ->
>>
http://ws.apache.org/sandesha/sandesha2/userGuide.html#retransmissioninterval
>>
>> - <#125358c8c1298450_> <sandesha2:RMAssertion>
>> - <#125358c8c1298450_> <wsp:Policy>
>> <sandesha2:AcknowledgementInterval>3000</
>> sandesha2:AcknowledgementInterval>
>>
>>
<sandesha2:RetransmissionInterval>6000</sandesha2:RetransmissionInterval>
>> - <!--
>>
>> '-1' conveys that there is no limit to the max. number of
>> retransmissions.
>>
>> -->
>> <sandesha2:MaximumRetransmissionCount>10</
>> sandesha2:MaximumRetransmissionCount>
>> <sandesha2:ExponentialBackoff>false</sandesha2:ExponentialBackoff>
>> <sandesha2:InactivityTimeout>60</sandesha2:InactivityTimeout>
>> <sandesha2:InactivityTimeoutMeasure>seconds</
>> sandesha2:InactivityTimeoutMeasure>
>> - <!--
>>
>> Once a sequence has been marked as deleted, or timed out, this is the
>> length of time that the
>>
>> sequence will remain before all sequence state is
totally
>> removed
>>
>> -->
>>
<sandesha2:SequenceRemovalTimeout>600</sandesha2:SequenceRemovalTimeout>
>> <sandesha2:SequenceRemovalTimeoutMeasure>seconds</
>> sandesha2:SequenceRemovalTimeoutMeasure>
>> <sandesha2:InvokeInOrder>true</sandesha2:InvokeInOrder>
>> - <!--
>>
>> These will not be overriden by service level policies
>>
>> -->
>> <sandesha2:MessageTypesToDrop>none</sandesha2:MessageTypesToDrop>
>> - <!--
>>
>> This will not be overriden by service level policies
>>
>> -->
>> - <#125358c8c1298450_> <sandesha2:StorageManagers>
>> <sandesha2:InMemoryStorageManager>
>> org.apache.sandesha2.storage.inmemory.InMemoryStorageManager</
>> sandesha2:InMemoryStorageManager>
>> <sandesha2:PermanentStorageManager>
>> org.apache.sandesha2.storage.inmemory.InMemoryStorageManager</
>> sandesha2:PermanentStorageManager>
>> </sandesha2:StorageManagers>
>> - <!--
>>
>> This will not be overriden by service level policies
>>
>> -->
>> <sandesha2:SecurityManager>
>> org.apache.sandesha2.security.dummy.DummySecurityManager</
>> sandesha2:SecurityManager>
>> <sandesha2:ContextManager>
>>
org.apache.sandesha2.context.DummyContextManager</sandesha2:ContextManager
>> >
>>
<sandesha2:EPRDecorator>org.apache.sandesha2.addressing.EPRDecoratorImpl
>> </sandesha2:EPRDecorator>
>> - <#125358c8c1298450_> <sandesha2:MakeConnection>
>> <sandesha2:Enabled>true</sandesha2:Enabled>
>> <sandesha2:UseRMAnonURI>true</sandesha2:UseRMAnonURI>
>> </sandesha2:MakeConnection>
>> - <!--
>>
>>
>>
<sandesha2:UseMessageSerialization>true</sandesha2:UseMessageSerialization>
>>
>> -->
>> <sandesha2:EnforceRM>false</sandesha2:EnforceRM>
>> </wsp:Policy>
>> </sandesha2:RMAssertion>
>>
>>
>>
>> A google search produces some useful stuff on the
>> setUseSeparateListener()
>> function
>> http://www.mail-archive.com/sandesha-dev@ws.apache.org/msg04286.html
>> http://wso2.org/library/1092
>>
>>
>> Hope that helps.
>> Sara
>>
>>
>> 2009/11/27 soni swapna <sw...@cisco.com>
>>
>>>
>>> Hi Sandesha Team,
>>>
>>> Could you please let me know how to seet the RetransmissionInterval
>>> time when engaging sandesha? And what value to set to
>>> setUseSeparateListener() function when using sendReceive() method to
>>> invoke
>>> a service. Its little urgent. Please response as soon as possible.
>>>
>>> Thanks,
>>> Swapna Soni.
>>> --
>>> View this message in context:
>>>
http://old.nabble.com/how-to-set-message-RetransmissionInterval-when-engaging-sandesha-tp26540828p26540828.html
>>> Sent from the Apache Sandesha mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: sandesha-dev-help@ws.apache.org
>>>
>>>
>>
>
>
--
View this message in context:
http://old.nabble.com/how-to-set-message-RetransmissionInterval-when-engaging-sandesha-tp26540828p26590628.html
Sent from the Apache Sandesha mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
Re: how to set message RetransmissionInterval when engaging
sandesha
Posted by soni swapna <sw...@cisco.com>.
Hi Team,
Can anyone please help me in resolving this issue.
Thanks,
Swapna Soni.
Sara Mitchell wrote:
>
> Hello Soni,
>
> I'd suggest eliminating your custom module from the problem first. Either
> remove them from the flow to make sure that everything else is working
> fine
> or debug the flow through that inflowhandler to see what is happening.
>
> Thanks,
> Sara
>
> 2009/11/27 Swapna Soni <sw...@cisco.com>
>
>> Hello Sara,
>>
>> I am still facing the same issue. I have engaged the sandesha in
>> client program and in service's service.xml. I have custom modules also
>> engaged and its inflowHandler and outflowHandler takes little time to
>> complete the executing. In meantime client side sandesha is resending the
>> request and at the end client program is getting two responses in one
>> envelope. But response is coming only till inflowhandler, its not going
>> till
>> client program. Could you please suggest me what is the issue and how
>> could
>> i resolve it.
>>
>> Thanks,
>> Swapna Soni.
>>
>> ------------------------------
>> *From:* Sara Mitchell [mailto:saralmitchell@googlemail.com]
>> *Sent:* Friday, November 27, 2009 5:05 PM
>> *To:* soni swapna
>> *Subject:* Re: how to set message RetransmissionInterval when engaging
>> sandesha
>>
>> Hello Soni,
>>
>> The Sandesha docs explain where to set the RetransmissionInterval in the
>> module.xml ->
>> http://ws.apache.org/sandesha/sandesha2/userGuide.html#retransmissioninterval
>>
>> - <#125358c8c1298450_> <sandesha2:RMAssertion>
>> - <#125358c8c1298450_> <wsp:Policy>
>> <sandesha2:AcknowledgementInterval>3000</
>> sandesha2:AcknowledgementInterval>
>>
>> <sandesha2:RetransmissionInterval>6000</sandesha2:RetransmissionInterval>
>> - <!--
>>
>> '-1' conveys that there is no limit to the max. number of
>> retransmissions.
>>
>> -->
>> <sandesha2:MaximumRetransmissionCount>10</
>> sandesha2:MaximumRetransmissionCount>
>> <sandesha2:ExponentialBackoff>false</sandesha2:ExponentialBackoff>
>> <sandesha2:InactivityTimeout>60</sandesha2:InactivityTimeout>
>> <sandesha2:InactivityTimeoutMeasure>seconds</
>> sandesha2:InactivityTimeoutMeasure>
>> - <!--
>>
>> Once a sequence has been marked as deleted, or timed out, this is the
>> length of time that the
>>
>> sequence will remain before all sequence state is totally
>> removed
>>
>> -->
>> <sandesha2:SequenceRemovalTimeout>600</sandesha2:SequenceRemovalTimeout>
>> <sandesha2:SequenceRemovalTimeoutMeasure>seconds</
>> sandesha2:SequenceRemovalTimeoutMeasure>
>> <sandesha2:InvokeInOrder>true</sandesha2:InvokeInOrder>
>> - <!--
>>
>> These will not be overriden by service level policies
>>
>> -->
>> <sandesha2:MessageTypesToDrop>none</sandesha2:MessageTypesToDrop>
>> - <!--
>>
>> This will not be overriden by service level policies
>>
>> -->
>> - <#125358c8c1298450_> <sandesha2:StorageManagers>
>> <sandesha2:InMemoryStorageManager>
>> org.apache.sandesha2.storage.inmemory.InMemoryStorageManager</
>> sandesha2:InMemoryStorageManager>
>> <sandesha2:PermanentStorageManager>
>> org.apache.sandesha2.storage.inmemory.InMemoryStorageManager</
>> sandesha2:PermanentStorageManager>
>> </sandesha2:StorageManagers>
>> - <!--
>>
>> This will not be overriden by service level policies
>>
>> -->
>> <sandesha2:SecurityManager>
>> org.apache.sandesha2.security.dummy.DummySecurityManager</
>> sandesha2:SecurityManager>
>> <sandesha2:ContextManager>
>> org.apache.sandesha2.context.DummyContextManager</sandesha2:ContextManager
>> >
>> <sandesha2:EPRDecorator>org.apache.sandesha2.addressing.EPRDecoratorImpl
>> </sandesha2:EPRDecorator>
>> - <#125358c8c1298450_> <sandesha2:MakeConnection>
>> <sandesha2:Enabled>true</sandesha2:Enabled>
>> <sandesha2:UseRMAnonURI>true</sandesha2:UseRMAnonURI>
>> </sandesha2:MakeConnection>
>> - <!--
>>
>>
>> <sandesha2:UseMessageSerialization>true</sandesha2:UseMessageSerialization>
>>
>> -->
>> <sandesha2:EnforceRM>false</sandesha2:EnforceRM>
>> </wsp:Policy>
>> </sandesha2:RMAssertion>
>>
>>
>>
>> A google search produces some useful stuff on the
>> setUseSeparateListener()
>> function
>> http://www.mail-archive.com/sandesha-dev@ws.apache.org/msg04286.html
>> http://wso2.org/library/1092
>>
>>
>> Hope that helps.
>> Sara
>>
>>
>> 2009/11/27 soni swapna <sw...@cisco.com>
>>
>>>
>>> Hi Sandesha Team,
>>>
>>> Could you please let me know how to seet the RetransmissionInterval
>>> time when engaging sandesha? And what value to set to
>>> setUseSeparateListener() function when using sendReceive() method to
>>> invoke
>>> a service. Its little urgent. Please response as soon as possible.
>>>
>>> Thanks,
>>> Swapna Soni.
>>> --
>>> View this message in context:
>>> http://old.nabble.com/how-to-set-message-RetransmissionInterval-when-engaging-sandesha-tp26540828p26540828.html
>>> Sent from the Apache Sandesha mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: sandesha-dev-help@ws.apache.org
>>>
>>>
>>
>
>
--
View this message in context: http://old.nabble.com/how-to-set-message-RetransmissionInterval-when-engaging-sandesha-tp26540828p26590628.html
Sent from the Apache Sandesha mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org
Re: how to set message RetransmissionInterval when engaging sandesha
Posted by Sara Mitchell <sa...@googlemail.com>.
Hello Soni,
I'd suggest eliminating your custom module from the problem first. Either
remove them from the flow to make sure that everything else is working fine
or debug the flow through that inflowhandler to see what is happening.
Thanks,
Sara
2009/11/27 Swapna Soni <sw...@cisco.com>
> Hello Sara,
>
> I am still facing the same issue. I have engaged the sandesha in
> client program and in service's service.xml. I have custom modules also
> engaged and its inflowHandler and outflowHandler takes little time to
> complete the executing. In meantime client side sandesha is resending the
> request and at the end client program is getting two responses in one
> envelope. But response is coming only till inflowhandler, its not going till
> client program. Could you please suggest me what is the issue and how could
> i resolve it.
>
> Thanks,
> Swapna Soni.
>
> ------------------------------
> *From:* Sara Mitchell [mailto:saralmitchell@googlemail.com]
> *Sent:* Friday, November 27, 2009 5:05 PM
> *To:* soni swapna
> *Subject:* Re: how to set message RetransmissionInterval when engaging
> sandesha
>
> Hello Soni,
>
> The Sandesha docs explain where to set the RetransmissionInterval in the
> module.xml ->
> http://ws.apache.org/sandesha/sandesha2/userGuide.html#retransmissioninterval
>
> - <#125358c8c1298450_> <sandesha2:RMAssertion>
> - <#125358c8c1298450_> <wsp:Policy>
> <sandesha2:AcknowledgementInterval>3000</
> sandesha2:AcknowledgementInterval>
> <sandesha2:RetransmissionInterval>6000</sandesha2:RetransmissionInterval>
> - <!--
>
> '-1' conveys that there is no limit to the max. number of retransmissions.
>
> -->
> <sandesha2:MaximumRetransmissionCount>10</
> sandesha2:MaximumRetransmissionCount>
> <sandesha2:ExponentialBackoff>false</sandesha2:ExponentialBackoff>
> <sandesha2:InactivityTimeout>60</sandesha2:InactivityTimeout>
> <sandesha2:InactivityTimeoutMeasure>seconds</
> sandesha2:InactivityTimeoutMeasure>
> - <!--
>
> Once a sequence has been marked as deleted, or timed out, this is the length of time that the
>
> sequence will remain before all sequence state is totally removed
>
> -->
> <sandesha2:SequenceRemovalTimeout>600</sandesha2:SequenceRemovalTimeout>
> <sandesha2:SequenceRemovalTimeoutMeasure>seconds</
> sandesha2:SequenceRemovalTimeoutMeasure>
> <sandesha2:InvokeInOrder>true</sandesha2:InvokeInOrder>
> - <!--
>
> These will not be overriden by service level policies
>
> -->
> <sandesha2:MessageTypesToDrop>none</sandesha2:MessageTypesToDrop>
> - <!--
>
> This will not be overriden by service level policies
>
> -->
> - <#125358c8c1298450_> <sandesha2:StorageManagers>
> <sandesha2:InMemoryStorageManager>
> org.apache.sandesha2.storage.inmemory.InMemoryStorageManager</
> sandesha2:InMemoryStorageManager>
> <sandesha2:PermanentStorageManager>
> org.apache.sandesha2.storage.inmemory.InMemoryStorageManager</
> sandesha2:PermanentStorageManager>
> </sandesha2:StorageManagers>
> - <!--
>
> This will not be overriden by service level policies
>
> -->
> <sandesha2:SecurityManager>
> org.apache.sandesha2.security.dummy.DummySecurityManager</
> sandesha2:SecurityManager>
> <sandesha2:ContextManager>
> org.apache.sandesha2.context.DummyContextManager</sandesha2:ContextManager
> >
> <sandesha2:EPRDecorator>org.apache.sandesha2.addressing.EPRDecoratorImpl
> </sandesha2:EPRDecorator>
> - <#125358c8c1298450_> <sandesha2:MakeConnection>
> <sandesha2:Enabled>true</sandesha2:Enabled>
> <sandesha2:UseRMAnonURI>true</sandesha2:UseRMAnonURI>
> </sandesha2:MakeConnection>
> - <!--
>
> <sandesha2:UseMessageSerialization>true</sandesha2:UseMessageSerialization>
>
> -->
> <sandesha2:EnforceRM>false</sandesha2:EnforceRM>
> </wsp:Policy>
> </sandesha2:RMAssertion>
>
>
>
> A google search produces some useful stuff on the setUseSeparateListener()
> function
> http://www.mail-archive.com/sandesha-dev@ws.apache.org/msg04286.html
> http://wso2.org/library/1092
>
>
> Hope that helps.
> Sara
>
>
> 2009/11/27 soni swapna <sw...@cisco.com>
>
>>
>> Hi Sandesha Team,
>>
>> Could you please let me know how to seet the RetransmissionInterval
>> time when engaging sandesha? And what value to set to
>> setUseSeparateListener() function when using sendReceive() method to
>> invoke
>> a service. Its little urgent. Please response as soon as possible.
>>
>> Thanks,
>> Swapna Soni.
>> --
>> View this message in context:
>> http://old.nabble.com/how-to-set-message-RetransmissionInterval-when-engaging-sandesha-tp26540828p26540828.html
>> Sent from the Apache Sandesha mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: sandesha-dev-help@ws.apache.org
>>
>>
>