Results 1 to 2 of 2

Thread: How do I add more than one property to a message?

  1. #1
    Join Date
    Jul 2009
    Posts
    3

    Default How do I add more than one property to a message?

    Is there a way to add more than one property to a message with NMS?

    For instance,

    IBytesMessage.Properties.SetString(string,string) only seems to work the first time that I call it. Any subsequent seem to be ignored with no exceptions thrown.

    I'd like to add multiple properties to a message, and looking at the source code, it seems like that was the intention, but I can't figure out how to do it.

  2. #2
    Join Date
    Jul 2009
    Posts
    3

    Default

    Nevermind I found the problem, you can't have a property of key "Type". That doesn't generate exceptions, it just gets ignored.

Posting Permissions

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