Hi,

the attributes out/response are only available if exchange has an Out.

        if (exchange.hasOut()) {
            Message out = exchange.getOut();
            context.setAttribute("out", out , scope);
            context.setAttribute("response", out, scope);
        }

(ScriptBuilder.java)

-----Original Message-----
From: fabrizio.spataro [mailto:[email protected]] 
Sent: Tuesday, February 17, 2015 4:54 PM
To: [email protected]
Subject: Re: Javascript DSL, "response" is not defined

So,

I am using the code according to this page ( 
http://camel.apache.org/javascript.html )!!!!



--
View this message in context: 
http://camel.465427.n5.nabble.com/Javascript-DSL-response-is-not-defined-tp5762839p5762844.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to