• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using MapMessage in JMS  RSS feed

Aravind Ramanujam
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using JMS MapMessage (javax.jms.MapMessage) to send a message to a MQ Queue. I'm using a MDB to recieve the message. In the MDB, I'm getting a ClassCastException. The MDB is not getting the MapMessage instead it is expecting a com.ibm.jms.JMSTextMessage.

I thought that if i'm sending a MapMessage, I will get MapMessage on the recieving end too. But I feel I have to explicitly mention that in the sender.

After digging into the internet, I tried to use the following:

But I don't know what value to use for com.ibm.mq.MQC.MQMT_REQUEST neither could i find that package also. I don't know whether this approach is right.

I also tried to change the tareget client defined for the queue destination. (I tried both JMS and MQ) Nothing helped.

Any help or ideas is appreciated

- Aravindan R -
[ April 19, 2005: Message edited by: Aravind Ramanujam ]
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!