Claus,

Coming back to simple language performance.  If I take out the choice the
performance is excellent 1 sec for 124 msgs but with choice the performance
is 5 second per 124 msgs.

          <unmarshal ref="myMessage" />
          <choice>
                <when>
                    <simple>${body.messagetype} == 'OPER'</simple>
                    <to uri="direct:write"/>
                </when>
         </choice>

Is there any other language that I can use instead of simple to make it
faster? I am looking at the MyMessage.getMessageType() only and I don't want
everything to be converted to string.

The body contains MyMessage class.
public class MyMessage{
        private String version;
        private String event;
        private HashMap<String,Param> parameters = new HashMap<String,Param>();
        private String entity;
        private String messagetype;
        private String eventTimestamp;
        private String sequenceNumber;
        private String nativeSourceName;
        private String nativeSourceType;


        @JsonProperty("Version")
        public String getVersion() {
                return version;
        }
         public void setVersion(String version) {
                 this.version = version;
         }
        
        @JsonProperty("Event")
        public String getEvent() {
                return event;
        }
        public void setEvent(String event) {
                this.event = event;
        }
          @JsonProperty("Entity")
        public String getEntity() {

                 return xyz;
        }
        public void setEntity(String entity) {
            //todo
        }
        
        @JsonProperty("Parameters")
        public HashMap<String, Param> getParameters() {
                return parameters;
        }
        public void setParameters(HashMap<String, Param> params) {
                if (params != null)
                {       
                        this.parameters = params;
                        }
                }
        }
        @JsonProperty("MessageType")
        public String getMessagetype() {
                return messagetype;
        }
        public void setMessagetype(String messagetype) {
                this.messagetype = messagetype;
        }
        @JsonProperty("TimeStamp")
        public String getEventTimestamp() {
                return eventTimestamp;
        }
        public void setEventTimestamp(String eventTimestamp) {
                this.eventTimestamp = eventTimestamp;
        }
        @JsonProperty("SequenceNumber")
        public String getSequenceNumber() {
                return sequenceNumber;
        }
        public void setSequenceNumber(String sequenceNumber) {
                this.sequenceNumber = sequenceNumber;
        }
        @JsonProperty("NativeSourceName")
        public String getNativeSourceName() {
                return nativeSourceName;
        }
        public void setNativeSourceName(String nativeSourceName) {
                this.nativeSourceName = nativeSourceName;

        }
        @JsonProperty("NativeSourceType")
        public String getNativeSourceType() {
                return nativeSourceType;
        }
        public void setNativeSourceType(String nativeSourceType) {
                this.nativeSourceType = nativeSourceType;
        }
}



-----
Alireza Salemi
--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Performance-tp5736810p5737053.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to