1 2 Previous Next 16 Replies Latest reply on Jul 31, 2007 9:20 AM by asachde Go to original post
      • 15. Re: Transform and persist from queue to filesystem
        tfennelly

        If you don't want the transformation result to be placed in the "defaultEntry", use the "output-location" property.

        So, an example... to set the transformation result in a Message.Body location called "my-transform", you specify the "output-location" property as:

         <property name="output-location" value="my-transform" />
        


        ... and you get that back out of the Message.Body by doing:
         String transformResult = (String) message.getBody().get("my-transform");
        


        So if you haven't specified an "output-location", your code will simply be:
         String transformResult = (String) message.getBody().get();
        


        ... and that's equivalent to:
         String transformResult = (String) message.getBody().get("defaultEntry");
        


        T.

        • 16. Re: Transform and persist from queue to filesystem

          Thanks. That's what I ended up doing (message.getBody().get() - Appreciate your help

          1 2 Previous Next