Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic