• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using MapMessage in JMS

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic