The predicates in your choice is using contains function which
operates on String types. So if the toString operation of the message
body is expensive, then optimize that.

On Tue, Aug 6, 2013 at 7:28 AM, salemi <sal...@avaya.com> wrote:
> Hi,
>
> I was wondering how can improve the performance of  the route below!
>                 <route id="operationalRoute" autoStartup="false">
>                 <from uri="jms:topic:opertopic"/>
>                 <transacted/>
>                 <unmarshal ref="ccisJSON"/>
>                 <choice>
>                         <when>
>                                 <simple>${body.messagetype} contains 
> 'OPER'</simple>
>                         <to uri="direct:gigaspacesInterface"/>
>                     </when>
>                     <when>
>                     <simple>${body.messagetype} contains 'CONTROL'</simple>
>                     <to uri="direct:sourceStatusRoute"/>
>                 </when>
>                         <when>
>                             <simple>${body.messagetype} contains 
> 'ADMIN'</simple>
>                                 <to uri="direct:adminRoute"/>
>                          </when>
>                          <otherwise>
>                                  <log loggingLevel="INFO" message=" ${body}"/>
>                           </otherwise>
>                 </choice>
>                 </route>
>
> I see the following times consumed using dynaTrace.
> 1. If I marked a route transacted I have lost of the performance of about
> 10ms per message!
> 2. The unmarshal tag takes about 2.5ms. If you have the Objectmapper already
> created the unmarshalling supposed to be in micro-second.
> 3. Creating Expression  (choice) and evaluating of it takes in average 11ms.
>
> Any suggestion how to improve the performance of the 3 items mentioned
> above?
>
>
>
> -----
> Alireza Salemi
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Performance-tp5736810.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to