Hi,
I'm trying to set "In" message in servcemix-bean component :
public void onMessageExchange(MessageExchange exchange) throws
MessagingException {
...
InOnlyImpl inOnly = (InOnlyImpl) exchange;
String output = "test";
NormalizedMessage answer = inOnly.createMessage();
answer.setContent(new StringSource(output));
inOnly.setMessage(answer, "in");
...
}
as a result there is following stack trace in the console:
...
ERROR - DefaultErrorHandler - Failed delivery for exchangeId:
ID-rafal-42345-1312206638892-10-9. Exhausted after delivery attempt: 1
caught: javax.jbi.messaging.MessagingException: In not supported
javax.jbi.messaging.MessagingException: In not supported
...
My question is is it possible to set in message and then what I am doing
wrong or maybe I shouldn't try to set the message...
Apache Servicemix 3.6