Forum Discussion

dilishtv's avatar
dilishtv
Occasional Contributor
8 years ago

Re: Set JMS header properties with Groovy

 

I'm using Ready API to post a JMS message using HermesJMS into our TIBCO EMS queue. I'm not using groovy to post the messages. I have one JMS custom property need to passed in as boolean. Currently the key value pair list supports only string.

I would like to do this using custom event handler. I saw Rao's post which has a "setMessageProperties" how can I get the "TextMessage" object from the context or the request object ?

 

Any help would be highly appreciated!

 

-Dilish

8 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    The above code snippet is applicable if you want to use in programming way.
    You may directly set the headers to JMS request step, right?
    • dilishtv's avatar
      dilishtv
      Occasional Contributor

      Thanks for your reply Rao! That makes sense.

       

      I'm currently setting it using the JMS header property but it is being passed as a string instead of boolean. Our TIBCO process is expecting a boolean value. :(

       

      I was looking for an option to override existing JMS Header before making the request using the event handler. 

       

       

      • nmrao's avatar
        nmrao
        Champion Level 3
        Understand the point.

        But have you tried sending boolean header with the JMS step? And you face any issue? If not, I would suggest you to try to set "true" as value for Boolean type header.