You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by mattrpav <ma...@airband.com> on 2008/09/02 19:23:24 UTC
ExchangeListener question
I have an Exchange Listener enabled and while monitoring the flow of a CXF WS
(BC <-> SE), I see five (5) trips via the Exchange Listener.
This seems counter intuitive to the idea that each component would set a
'Active' and 'Done' status on the Exchange. Why are their 5 steps for the
role-type-status combination? It seems that there should be six (6) total
steps, as the Provider-Sent-Active never gets a Provider-Sent-Done.
MsgId: ID:192.168.145.20-11c23eba8cc-4:0 role: Consumer type: Sent status:
Active.
MsgId: ID:192.168.145.20-11c23eba8cc-4:0 role: Provider type: Accepted
status: Active.
MsgId: ID:192.168.145.20-11c23eba8cc-4:0 role: Provider type: Sent status:
Active.
MsgId: ID:192.168.145.20-11c23eba8cc-4:0 role: Consumer type: Sent status:
Done.
MsgId: ID:192.168.145.20-11c23eba8cc-4:0 role: Provider type: Accepted
status: Done.
Thanks,
Matt Pavlovich
--
View this message in context: http://www.nabble.com/ExchangeListener-question-tp19274556p19274556.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ExchangeListener question
Posted by mattrpav <ma...@airband.com>.
Thank you!
--
View this message in context: http://www.nabble.com/ExchangeListener-question-tp19274556p19294747.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ExchangeListener question
Posted by Guillaume Nodet <gn...@gmail.com>.
For an InOnly, it will be:
> InOnly:
> role: Consumer type: Sent status: Active.
> role: Provider type: Accepted status: Active.
> role: Provider type: Sent status: Done.
> role: Consumer type: Accepted status: Done.
The JBI specification has some diagrams that explains the possibilities.
Not that if you have an error, you could have:
> InOut:
> role: Consumer type: Sent status: Active.
> role: Provider type: Accepted status: Active.
> role: Provider type: Sent status: Active.
> role: Consumer type: Accepted status: Active.
> role: Consumer type: Sent status: Error.
> role: Provider type: Accepted status: Error.
or, depending on which component sends the error:
> InOut:
> role: Consumer type: Sent status: Active.
> role: Provider type: Accepted status: Active.
> role: Provider type: Sent status: Error.
> role: Consumer type: Accepted status: Error.
and for an InOnly
> InOnly:
> role: Consumer type: Sent status: Active.
> role: Provider type: Accepted status: Active.
> role: Provider type: Sent status: Error.
> role: Consumer type: Accepted status: Error.
Each MEP has its own set of messages ...
On Wed, Sep 3, 2008 at 5:34 PM, mattrpav <ma...@airband.com> wrote:
>
> Guillaume-
>
> Ok, so let me know if I've summarized correctly here-- I don't have any
> InOnly services, so I'm guessing there.
>
> InOut:
> role: Consumer type: Sent status: Active.
> role: Provider type: Accepted status: Active.
> role: Provider type: Sent status: Active.
> role: Consumer type: Accepted status: Active.
> role: Consumer type: Sent status: Done.
> role: Provider type: Accepted status: Done.
>
> InOnly:
> role: Consumer type: Sent status: Active.
> role: Provider type: Accepted status: Active.
> role: Provider type: Sent status: Active.
> role: Consumer type: Accepted status: Active.
> role: Provider type: Sent status: Done.
> role: Consumer type: Accepted status: Done.
>
> Thanks!
> Matt Pavlovich
> --
> View this message in context: http://www.nabble.com/ExchangeListener-question-tp19274556p19291839.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
Re: ExchangeListener question
Posted by mattrpav <ma...@airband.com>.
Guillaume-
Ok, so let me know if I've summarized correctly here-- I don't have any
InOnly services, so I'm guessing there.
InOut:
role: Consumer type: Sent status: Active.
role: Provider type: Accepted status: Active.
role: Provider type: Sent status: Active.
role: Consumer type: Accepted status: Active.
role: Consumer type: Sent status: Done.
role: Provider type: Accepted status: Done.
InOnly:
role: Consumer type: Sent status: Active.
role: Provider type: Accepted status: Active.
role: Provider type: Sent status: Active.
role: Consumer type: Accepted status: Active.
role: Provider type: Sent status: Done.
role: Consumer type: Accepted status: Done.
Thanks!
Matt Pavlovich
--
View this message in context: http://www.nabble.com/ExchangeListener-question-tp19274556p19291839.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ExchangeListener question
Posted by Guillaume Nodet <gn...@gmail.com>.
No. For an InOut exchange, the consumer sends the DONE status and the
provider receives it.
For an InOnly, this is different, as the provider would send the DONE
status and the consumer would receive it.
On Wed, Sep 3, 2008 at 4:48 PM, mattrpav <ma...@airband.com> wrote:
>
> Guillaume-
>
> In an effort to try to understand the internals a bit more, can you confirm
> if the Provider-Sent-Done was supposed to occur or not?
>
> Also, I created - https://issues.apache.org/activemq/browse/SM-1550 to track
> this issue.
>
> Thanks!
> Matt Pavlovich
>
> --
> View this message in context: http://www.nabble.com/ExchangeListener-question-tp19274556p19290867.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
Re: ExchangeListener question
Posted by mattrpav <ma...@airband.com>.
Guillaume-
In an effort to try to understand the internals a bit more, can you confirm
if the Provider-Sent-Done was supposed to occur or not?
Also, I created - https://issues.apache.org/activemq/browse/SM-1550 to track
this issue.
Thanks!
Matt Pavlovich
--
View this message in context: http://www.nabble.com/ExchangeListener-question-tp19274556p19290867.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ExchangeListener question
Posted by Guillaume Nodet <gn...@gmail.com>.
There is a missing step between #3 and #4 which should be Consumer /
Accepted / Active.
Not sure why it is missing. It may be caused by a missing call to the
listeners when the
sendSync method is used.
Could you please raise a JIRA ?
On Tue, Sep 2, 2008 at 7:23 PM, mattrpav <ma...@airband.com> wrote:
>
> I have an Exchange Listener enabled and while monitoring the flow of a CXF WS
> (BC <-> SE), I see five (5) trips via the Exchange Listener.
>
> This seems counter intuitive to the idea that each component would set a
> 'Active' and 'Done' status on the Exchange. Why are their 5 steps for the
> role-type-status combination? It seems that there should be six (6) total
> steps, as the Provider-Sent-Active never gets a Provider-Sent-Done.
>
> MsgId: ID:192.168.145.20-11c23eba8cc-4:0 role: Consumer type: Sent status:
> Active.
> MsgId: ID:192.168.145.20-11c23eba8cc-4:0 role: Provider type: Accepted
> status: Active.
> MsgId: ID:192.168.145.20-11c23eba8cc-4:0 role: Provider type: Sent status:
> Active.
> MsgId: ID:192.168.145.20-11c23eba8cc-4:0 role: Consumer type: Sent status:
> Done.
> MsgId: ID:192.168.145.20-11c23eba8cc-4:0 role: Provider type: Accepted
> status: Done.
>
> Thanks,
> Matt Pavlovich
> --
> View this message in context: http://www.nabble.com/ExchangeListener-question-tp19274556p19274556.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/