Announcement Announcement Module
Collapse
No announcement yet.
Messages and Channels Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment

    Working...
    X