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 » General IBM MQ Support » MQ communicate problem

Post new topic  Reply to topic
 MQ communicate problem « View previous topic :: View next topic » 
Author Message
muyu77
PostPosted: Wed Oct 20, 2004 1:00 am    Post subject: MQ communicate problem Reply with quote

Newbie

Joined: 20 Oct 2004
Posts: 5

I communicate between two AIX Servers by MQ,aix1,aix2

aix1 is sender
the data is an array xxsPart[][]

ObjectMessage objmsg = sessionSend.createObjectMessage();
objmsg.setObject(xxsPart);
objmsg.setStringProperty("identifier", identifier);
sender.send(objmsg);

aix2 is receiver
Message aMessage = receiver.receive(Long.parseLong(resMQ.getString("TIMEOUT")));
if (aMessage != null) {
ObjectMessage objmsg = (ObjectMessage) aMessage;
xxsPart = (String[][]) objmsg.getObject();
}
but when I execute the command
ObjectMessage objmsg = (ObjectMessage) aMessage;
return an error:
java.lang.ClassCastException: com.ibm.jms.JMSBytesMessage

who can slove the problem for me

very thanks
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Oct 20, 2004 10:30 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

This is not a WMQI question, so moving the post to General MQ Support Forum. Please post your questions into correct forum.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
bower5932
PostPosted: Wed Oct 20, 2004 11:43 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

See my answer in:

http://www.mqseries.net/phpBB/viewtopic.php?t=18386&highlight=classcastexception
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQ communicate problem
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.