I'm trying to understand the camel code and I stumbled across two classes I can not understand:

1. class ProcessorType<Type extends ProcessorType>
2. class RouteType extends ProcessorType<ProcessorType>

Is this some kind of self-parametrization?

Simplified version of problem (it does not compile):
        from("src").
        convertBodyTo(String.class).
        setBody().el("").
        to("");

I'm trying to understand what's wrong but template usage is quite tricky here.


Vadim Chekan wrote:
I'm having problem with the following expression:
                from("activemq:Integration.Status").
                setHeader("Body").el("${in.body}").
                setBody().el("${in.headers}").
                marshal().
                xstream().convertBodyTo(String.class).
                setBody().el("declare @h uniqueidentifier; "+
                           "begin dialog conversation @h "+
                           "from service StatusResponseService "+
                           "to service 'StatusService' "+
                           "with encryption=off; "+
                           "send on conversation @h 
('${in.body.replace('\'','\'\'')}'); ").
                to("jdbc:Status");

Reply via email to