camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mick Knutson" <>
Subject issue routing Exchange to custom method in Processor
Date Fri, 26 Sep 2008 19:22:50 GMT
I have a Processor with 2 different methods:

The standard:
*public void process(Exchange exchange) {

and a custom:

    *@MessageDriven(uri = Constants.CHANNEL_GG_CS_COMMAND_STATUS)
    public void onMessage(Exchange exchange) *

Now here is my route:

       * from(Constants.CHANNEL_GG_CS_CR_ADD)


        // Route for command status updates.


So when I get a message on *Constants.CHANNEL_GG_CS_CR_ADD my
process(Exchange) method is called, and that rout is fine.

However, I get a response message back on
but it is also processed by *the *process(Exchange) instead of my onMessage*

I have tried @MessageDriven annotation as well as the route builder but
neither works.

Am I forced to have each process in a single class?

Thank You…

Mick Knutson
BASE Logic, inc.
(415) 354-4215

BLiNC Magazine:
Linked IN:
DJ Mick:
Vacation Rental:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message