Results 1 to 2 of 2

Thread: Messages and Channels

  1. #1

    Default Messages and Channels

    Hi
    Since the Message object does not have any setters method, is there a way to create a message pragmatically from a file.
    I am working with java.io.File objects and I need at one point to inject these pragmatically into a channel, can this be done.

    Thanks


    Regards;
    Adam

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,040

    Default

    You can use the MessageBuilder.

    However, it is better to not expose the messaging infrastructure to your code. You can use a messaging gateway to send the File object, and the framework will wrap it in a message for you.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •