camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scottmiles <motgu...@gmail.com>
Subject Re: AW: How to use CAMEL to send the acknowledgement and xml output to vendors on different platform ?
Date Thu, 10 Apr 2014 13:14:48 GMT
Assume i have below ValidateOrder 

public class ValidateOrder { 
    public void check1(String body) throws ValidationException { 
        // body is the value of Exchange.getIn().getBody(String.class) and 
provided by bean-binding. 
    } 

 public void check2(String body) throws ValidationException { 
        // body is the value of Exchange.getIn().getBody(String.class) and 
provided by bean-binding. 
    } 
} 


Here is my configuration

<route>
   <from uri="jms:queue:order"/>
   <bean ref="validateOrder"/>
   <bean ref="registerOrder"/>
   <bean ref="sendConfirmEmail"/>
</route>

will check1 or check2 be called ? Link
http://camel.apache.org/bean-binding.html says that we can
mention @Handler on method which needs t be called. Say in one route i need
to call check1 method and
in other route need to call check2 method. How it will work?



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-use-CAMEL-to-send-the-acknowledgement-and-xml-output-to-vendors-on-different-platform-tp5749906p5750051.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message