Announcement Announcement Module
Collapse
No announcement yet.
Send MQMessage to IBM MQ Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Send MQMessage to IBM MQ

    Hi,

    Do you know how to send MQMessage to IBM MQ from Spring framework ?. I tryed witth JmsTemplate, but MessageCreator implements createMessage returning Message object, not MQMessage.

    Thank you for your help.

    Cheers
    Michal (mstachu)

  • #2
    Hello,

    if you are using the JMS API, then you can downcast the Message into a MQMessage and set the custom properties.
    The disadvantage is that you code will only work with IBM MQ.

    There is no native MQ support inside spring, and IMHO i wouldn't go for this way. Because then you will couple your code completly to MQ.

    rgds
    agim

    Comment


    • #3
      Purge connection and session pool

      Thanks a lot. That seems to work, but now I have new chalage. I have two error with code 2019 and 2009. It is related to connection pooling to queue managers. Do you know how I can programatically (in java) or administratively purge connection and session pools ?

      Many thanks
      Michal

      Comment


      • #4
        Hello,

        do you use the pools provided by the websphere application server ?
        If so, then you have to set the purge policy to entire pool instead of the failed connection only. (because in the last option, you will get this error for every connection).

        rgds
        agim

        Comment

        Working...
        X