Re: how to set message RetransmissionInterval when engaging sandesha

Andrew K Gatford <[email protected]> Tue, 1 Dec 2009 12:56:14 +0000
Newsgroups gmane.comp.apache.webservices.fx.devel
Message-ID <OF1640CCA5.9F1DF8AC-ON8025767F.0046A1B1-8025767F.0047142D@uk.ibm.com>
--=_alternative 004712818025767F_=
Content-Type: text/plain; charset="US-ASCII"

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 : [email protected]



From:
soni swapna <[email protected]>
To:
[email protected]
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 <[email protected]>
> 
>>  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-gM/[email protected]]
>> *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/[email protected]/msg04286.html
>> http://wso2.org/library/1092
>>
>>
>> Hope that helps.
>> Sara
>>
>>
>> 2009/11/27 soni swapna <[email protected]>
>>
>>>
>>> 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: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
> 
> 

-- 
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: [email protected]
For additional commands, e-mail: [email protected]









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






--=_alternative 004712818025767F_=
Content-Type: text/html; charset="US-ASCII"


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