You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Jamie Le Grange <ja...@googlemail.com> on 2006/02/22 12:08:22 UTC

reliably telling which way an inout message exchange is headed

this is more a jbi question:

is there a way to reliably tell which direction a message exchange is
headed in (i.e. inbound or outbound) or should i just check to see
that neither the outmessage, fault or exception is set to tell that
it's inbound?

Re: reliably telling which way an inout message exchange is headed

Posted by Jamie Le Grange <ja...@googlemail.com>.
awesome, thanks. that worked nicely.

On 22/02/06, Guillaume Nodet <gu...@worldonline.fr> wrote:
> The getRole() on the MessageExchange tells you just that.
>
> Cheers,
> Guillaume Nodet
>
> Jamie Le Grange wrote:
>
> >this is more a jbi question:
> >
> >is there a way to reliably tell which direction a message exchange is
> >headed in (i.e. inbound or outbound) or should i just check to see
> >that neither the outmessage, fault or exception is set to tell that
> >it's inbound?
> >
> >
> >
> >
>

Re: reliably telling which way an inout message exchange is headed

Posted by Guillaume Nodet <gu...@worldonline.fr>.
The getRole() on the MessageExchange tells you just that.

Cheers,
Guillaume Nodet

Jamie Le Grange wrote:

>this is more a jbi question:
>
>is there a way to reliably tell which direction a message exchange is
>headed in (i.e. inbound or outbound) or should i just check to see
>that neither the outmessage, fault or exception is set to tell that
>it's inbound?
>
>
>  
>