camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bovas <bovas.t...@gmail.com>
Subject Re: Assigning File names to exchanges generated from split
Date Thu, 25 Jul 2013 15:26:46 GMT
Sorry for opening this old post.

you can call your function with your simple.body?
/simple("${body.getAttribute(levelIdentifier)}/

/You can call a bean in the setHeader so the result of the bean is the
header value. /


That I do :

.setHeader(Exchange.FILE_NAME).simple("bean://Mymethod?method=getAttribute('test')")
.to('file://path)

public String getAttribute(String key){
		String res = key
		int nb = 0;
		nb++
		return res +"${nb};
	}

it doesn't work :/



-----
regards,
Bovas
--
View this message in context: http://camel.465427.n5.nabble.com/Assigning-File-names-to-exchanges-generated-from-split-tp5715603p5736270.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message