ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » weblogic.jms.common.HdrMessageImpl

Post new topic  Reply to topic
 weblogic.jms.common.HdrMessageImpl « View previous topic :: View next topic » 
Author Message
BDB
PostPosted: Tue Feb 17, 2009 11:16 am    Post subject: weblogic.jms.common.HdrMessageImpl Reply with quote

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.



Any ideas?


-BDB
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Feb 17, 2009 2:49 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

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
Back to top
View user's profile Send private message Send e-mail
BDB
PostPosted: Wed Feb 18, 2009 5:47 am    Post subject: Reply with quote

Apprentice

Joined: 06 Jan 2009
Posts: 28

Issue is fixed. My message creation was the issue.
Thank you for all the help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » weblogic.jms.common.HdrMessageImpl
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.