[prev in list] [next in list] [prev in thread] [next in thread] 

List:       synapse-dev
Subject:    Re: Issue in the current Endpoint behavior with Out only MEP
From:       Ruwan Linton <ruwan.linton () gmail ! com>
Date:       2010-11-24 8:58:01
Message-ID: AANLkTik8TCM7nuwrwXE7WZ_yfje0mz4K0y6WMPzJ8mUA () mail ! gmail ! com
[Download RAW message or body]

+1

The patch looks OK

Thanks,
Ruwan

On Mon, Nov 22, 2010 at 1:59 PM, Charith Wickramarachchi <
charith.dhanushka@gmail.com> wrote:

> Hi devs ,
>
> When invoking an in only service via an Endpoint we need to set OUT-ONLY
> property in the Message Context (if we do not do this call backs will
> get accumulated in the SynapseCallbackReceiver : there is a map keeping
> those to correlate request and response )
>
> In success scenario that will work fine. But the problem is in
> a scenario where the actual service is unavailable, The problem is, in
> that case Synapse Endpoint does not get suspended,
> In OUT-ONLY  fault scenario since there is no callback registered,
>  the relevant fault handler  not get called. So as a result the endpoint/s
> will not get notified with a fault in  an OUT_ONLY scenario. So this is a
> synapse level bug.
>
> I looked in to this issue and created a patch to resolve this problem.I
> m attaching the patch for review. If devs are ok with the patch i'll create
> a JIRA and attach this.
>
> thanks,
> Charith
> --
> Charith Dhanushka Wickramarachchi
> http://charithwiki.blogspot.com/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
> For additional commands, e-mail: dev-help@synapse.apache.org
>



-- 
Ruwan Linton
Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org

Lean . Enterprise . Middleware

phone: +1 408 754 7388 ext 51789
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://blog.ruwan.org
linkedin: http://www.linkedin.com/in/ruwanlinton
google: http://www.google.com/profiles/ruwan.linton
tweet: http://twitter.com/ruwanlinton

[Attachment #3 (text/html)]

+1<div><br></div><div>The patch looks \
OK</div><div><br></div><div>Thanks,</div><div>Ruwan<br><br><div \
class="gmail_quote">On Mon, Nov 22, 2010 at 1:59 PM, Charith Wickramarachchi <span \
dir="ltr">&lt;<a href="mailto:charith.dhanushka@gmail.com">charith.dhanushka@gmail.com</a>&gt;</span> \
wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;">Hi devs ,<div><br></div><div>When invoking an in only \
service via an Endpoint we need to set <span style="font-family:arial, \
sans-serif;font-size:13px;border-collapse:collapse">OUT-ONLY property in the Message \
Context (if we do not do this call backs will get accumulated in the \
SynapseCallbackReceiver : there is a map keeping those to correlate request and \
response )</span></div>

<div><span style="font-family:arial, \
sans-serif;font-size:13px;border-collapse:collapse"><br></span></div><div><span \
style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">In \
success scenario that will work fine.</span><span style="font-family:arial, \
sans-serif;font-size:13px;border-collapse:collapse"> But the <span \
style="background-color:rgb(255, 255, 204);color:rgb(34, 34, \
34);background-repeat:initial initial">problem</span> is in a scenario where the \
actual service is unavailable, The <span style="background-color:rgb(255, 255, \
204);color:rgb(34, 34, 34);background-repeat:initial initial">problem</span> is, in \
that case Synapse Endpoint does not get suspended,</span></div>

<div><span style="font-family:arial, \
sans-serif;font-size:13px;border-collapse:collapse">In OUT-ONLY  fault scenario since \
there is no callback registered,  the relevant fault handler  not get called. So as a \
result the endpoint/s will not get notified with a fault in  an OUT_ONLY scenario. So \
this is a synapse level bug. </span><span style="font-family:arial, \
sans-serif;font-size:13px;border-collapse:collapse"> </span></div>

<div><br><div>I looked in to this issue and created a patch to resolve this problem.I \
m attaching the patch for review. If devs are ok with the patch i&#39;ll create a \
JIRA and attach this.</div> <div><br></div><div>thanks,</div><div>Charith<br>-- \
<br>Charith Dhanushka Wickramarachchi<br><a href="http://charithwiki.blogspot.com/" \
target="_blank">http://charithwiki.blogspot.com/</a><br><br> </div></div>
<br><br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: <a \
href="mailto:dev-unsubscribe@synapse.apache.org">dev-unsubscribe@synapse.apache.org</a><br>
 For additional commands, e-mail: <a \
href="mailto:dev-help@synapse.apache.org">dev-help@synapse.apache.org</a><br></blockquote></div><br><br \
clear="all"><br>-- <br>Ruwan Linton<br>Software Architect &amp; Product Manager, WSO2 \
ESB; <a href="http://wso2.org/esb" target="_blank">http://wso2.org/esb</a><br> WSO2 \
Inc.; <a href="http://wso2.org" target="_blank">http://wso2.org</a><br><br>Lean . \
Enterprise . Middleware<br><br>phone: +1 408 754 7388 ext 51789<br>email: <a \
href="mailto:ruwan@wso2.com" target="_blank">ruwan@wso2.com</a>; cell: +94 77 341 \
                3097<br>
blog: <a href="http://blog.ruwan.org" \
target="_blank">http://blog.ruwan.org</a><br>linkedin: <a \
href="http://www.linkedin.com/in/ruwanlinton" \
target="_blank">http://www.linkedin.com/in/ruwanlinton</a><br>google: <a \
href="http://www.google.com/profiles/ruwan.linton" \
                target="_blank">http://www.google.com/profiles/ruwan.linton</a><br>
tweet: <a href="http://twitter.com/ruwanlinton" \
target="_blank">http://twitter.com/ruwanlinton</a><br> </div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic