This content has been marked as final.
Show 3 replies
-
1. Re: ProducerTemplate encoding
njiang Dec 10, 2010 10:27 PM (in response to chungyeung)You just need set the exchange property for the encoding like this
exchange.setProperty(Exchange.CHARSET_NAME, "ISO-8859-1");
But you may need to use the template send() method to send the request, and extract the response yourself.
-
2. Re: ProducerTemplate encoding
chungyeung Dec 12, 2010 12:29 PM (in response to njiang)Hi njiang,
Thanks for the reply but I failed to extract the response from a template send() method. I tried various methods like:
Exchange outExchg = template.send(endpoint, exchg);
but the outExchg does not contain any response data. I would be grateful if you could post an example.
-
3. Re: ProducerTemplate encoding
chungyeung Dec 12, 2010 12:45 PM (in response to njiang)Sorry njiang! It actually works. Thanks.