Posted: Tue Feb 17, 2009 11:16 am Post subject: weblogic.jms.common.HdrMessageImpl
Apprentice
Joined: 06 Jan 2009 Posts: 28
I am creating a message and putting in a Queue with the following code
MQMessage msg = new MQMessage();
msg.format=MQconstats.MQFMT_NONE;
String str = "Test Message";
msg.write(str.getBytes()); //write bytes to the message
and putting it in the Queue. This queue is bridged to my Weblogic instance. My MDB is recieving it and throwing an exception saying it is an invalid message.
I tried debugging the error and found that the message coming is of type
weblogic.jms.common.HdrMessageImpl. Is there any additional step I need to convert it to the JMS message types? I expected BytesMessage or ObjectMessage to arrive.
I am sorry to bug you guys and waste your precious time butif you could help me, it would be great.
Looks like you are mixing MQ base and MQJMS. Not a good idea.
In Weblogic stick with MQJMS.
Hint: (though both may be of class MQMessage the package is different for JMS and base java)!
_________________ MQ & Broker admin
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum