Think about the case where you set a non anonymous reply to as the
replyTo address then , what server will do is, will send the response
to that address. When we do that with our client API , operation client
will wait to get the response but that will never get it and will be
timeout.
IMHO if the user is setting a replyTo epr, then he is the person who
should take care of tthese..
Therefore only way to avoid is to assume if someone set replyTo
address then he is trying to invoke that using separate channel .
Are we starting a new listener in this case??
Anyway we do not have a control over the replyTo epr given by the
user... It can be a separate endpoint which is already available...
AFAIKS in that case even though we useSeparateListener, our client
side will wait for a response through the listener we setup, which
would never come that way...
I doubt whether this will solve the issue...
Thanks,
Thilina
Thanks
Deepal
> Can somebody explain the reasons behind the following change...This
> change went in svn commit: r547986 done by Deepal...
>
> Thanks,
> Thilina
>
> On 6/25/07, David Illsley <[EMAIL PROTECTED]> wrote:
>> I'd agree that this looks a bit odd and precludes a scenario we were
>> talking about only last week (setting an anon EPR w/refparams).
>>
>> Can someone explain the intention here?
>> Thanks,
>> David
>>
>> On 23/06/07, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:
>> > Hi,
>> > > fixing the issue.
>> > hmm... Fixing which issue :)...
>> >
>> >
>>
>webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java
>>
>> > Sat Jun 16 14:24:15 2007
>> > > @@ -189,6 +189,10 @@
>> > > useAsync = useAsyncOption.booleanValue();
>> > > }
>> > > }
>> > > + EndpointReference replyTo = mc.getReplyTo();
>> > > + if(replyTo!=null&&!replyTo.hasAnonymousAddress()){
>> > > + useAsync = true;
>> > > + }
>> > It seems with the above change Axis2 defaults to useSeperateListener
>> > if a replyTo address is given, even though the user has done just a
>> > serviceClient.sendReceive(payload);... I doubt whether this is
>> > correct...
>> >
>> > There can be scenerio's where users might already be having a listener
>> > up and running for the given replyTo address.. In that case trying to
>> > setup a new listener can give us lot of troubles...
>> >
>> > Thanks,
>> > Thilina
>> >
>> >
>
--
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]