0 Replies Latest reply on Mar 25, 2008 5:07 PM by Fabio R

    All send messages is in the transaction?

    Fabio R Newbie



      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 + "'/>"));