Hello,
I'm using JCAFlow and I would like to know if all the messages sent with the code bellow is enlisted in the transaction so that when I have some problem all the exchange is canceled or if I need to explicit set tha transaction anywhere?
public void sendMessages(int count) throws MessagingException { for (int i = 0; i < count; i++) { InOnly exchange = client.createInOnlyExchange(); NormalizedMessage message = exchange.getInMessage(); message.setProperty("id", new Integer(i)); message.setContent(new StringSource("<example id='" + i + "'/>")); client.send(exchange); } }
Thank's
Fabio