-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
from the msgctx you can get which flow ur in and it will return you an
int value

int flow = msgctx.getFLOW();

so if the value is 1 then ur in inflow
if the value is 2 , ur in outflow

Ajith Ranabahu wrote:

> Hi Iksrazal, Chathura is right. You can use the operationContext to
> share things along one operation. BTW i'm surprised to hear that
> message labels do not work properly!
>
> On 2/7/06, Chathura Herath <[EMAIL PROTECTED]> wrote:
>
>> Well you should be able to determine whether you are in inflow or
>> outflow by using getFLOW method in the message context. The
>> relavent constants are there in the MessageContext. If you want
>> to pass variable between two flows of the same operation, use the
>> OperationContext for that.
>>
>> HTH Chathura
>>
>> On 2/6/06, iksrazal <[EMAIL PROTECTED]> wrote:
>>
>>> Hi all,
>>>
>>> I need to get the soap message, and handle the request and
>>> response differently. I also need to pass a variable between
>>> the request and response - via messageContext.setProperty()
>>> etc.
>>>
>>> I tried to determine if I'm in a request / response by :
>>>
>>> 1) messageContext.isResponseWritten() - so far not implemented
>>> though.
>>>
>>> 2) Message_lables. No luck there either.
>>>
>>> 3) Implementing a separate handler for the in / out phase -
>>> although I'm using the same module. Unfortunately, this way I
>>> can't seem to use set / get property between the handlers.
>>>
>>> I'm now trying to do:
>>>
>>> 4) Use the same handler, but somehow determine the in / out
>>> phase.
>>>
>>> My question is: Is there a way to determine which phase you are
>>> in from inside a Handler ? Or, is there a common property I can
>>> use between handlers that belong to the same module? I need to
>>> simply pass an incrementing Long.
>>>
>>> Thanks, iksrazal http://www.braziloutsource.com/
>>>
>>
>> -- Chathura Herath http://chathurah.blogspot.com/
>>
>
>
> -- Ajith Ranabahu
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFD6CzUjOGcXNDx0CARAq6EAJ9Oo4t9h4iS2Vp7KaOGoupLOeQH6QCfXGSe
O33/HZ12T87CdLqb7UJMzww=
=g1EH
-----END PGP SIGNATURE-----


Reply via email to