camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sri <>
Subject setting headers in destination endpoint for exec
Date Thu, 28 Oct 2010 12:05:48 GMT

Hello All,

I am using camel-exec for to execute a java command. 

 version I am using are 

Camel 2.5-SNAPSHOT and 
JDK1.6 ver

my requirement is set the parameters in the route from the headers I am
getting from end point.

following is the route i am using .

Titan.jar "+getFromHeader() )
				.process(new Processor() {
				     public void process(Exchange exchange) throws Exception {
				       String processOutput = (String)
				       Integer exitCode = (Integer)
exchange.getIn().getHeader(ExecBinding.EXEC_EXIT_VALUE, Integer.class);
	"Exit code: " + exitCode);

I need to pass the highlighted part from the headers.

is there any way that I can send these parameters dynamically I mean
creating the destination end point string dynamically.

thanks in advance for your suggestions.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message