|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  MQ communicate problem | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | muyu77 | 
		  
		    
			  
				 Posted: Wed Oct 20, 2004 1:00 am    Post subject: MQ communicate problem | 
				     | 
			   
			 
		   | 
		 
		
		   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 | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | kirani | 
		  
		    
			  
				 Posted: Wed Oct 20, 2004 10:30 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   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 | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | bower5932 | 
		  
		    
			  
				 Posted: Wed Oct 20, 2004 11:43 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Jedi Knight
 
 Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA 
  | 
		  
		    
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | 
		    
		   | 
		 
	   
	 | 
   
 
  
	     | 
	 | 
	Page 1 of 1 | 
   
 
 
 
  
  	
	  
		
		  
 
  | 
		  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
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |