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 API Support » Problem with JMS program

Post new topic  Reply to topic
 Problem with JMS program « View previous topic :: View next topic » 
Author Message
Krishna_Bhaskar_Vonteddu
PostPosted: Fri Sep 16, 2005 1:02 pm    Post subject: Problem with JMS program Reply with quote

Novice

Joined: 05 Sep 2005
Posts: 11

Hai Everybody,Im having a funny problem with JMS Programs.
I have written two programs :one is 'WriteToQueue' which writes a msg to the queue and another is 'ReadFromQueue' which reads the message written into queue.ok this is working fine. But the problem is if I have written a msg without using the WriteToQueue program, that type of messages are unable to read by the 'ReadFromQueue' program while running the proagram(RFQ) it is throwing an Exception:java.io.EOFException.Thats it can I find a solution ,plz have a say on this.
Back to top
View user's profile Send private message
bower5932
PostPosted: Fri Sep 16, 2005 1:10 pm    Post subject: Reply with quote

Jedi Knight

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

It sounds to me like you are probably sending something other than TextMessages (MQ format of MQSTR) between the two programs. Can you give some more information on what type of message you are sending and what type of message you are receiving? Also, are you using a targetclient of JMS or MQ (ie, what about the RFH2 header on the messages)?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
fjb_saper
PostPosted: Fri Sep 16, 2005 7:04 pm    Post subject: Reply with quote

Grand High Poobah

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

bower5932 wrote:
It sounds to me like you are probably sending something other than TextMessages (MQ format of MQSTR) between the two programs. Can you give some more information on what type of message you are sending and what type of message you are receiving? Also, are you using a targetclient of JMS or MQ (ie, what about the RFH2 header on the messages)?


If the reading program is JMS as he seems to imply there should be no RFH problem. It should read the message and the payload correctly whether the queue is defined with targetClient=1 or not. This is only effective when putting a message to the queue.

I think the problem might be an external program/utility putting messages to the queue in RAW format ==> bytes messages in JMS terms and the receiver program expects a TextMessage.

Another strong possibility is that the reader program uses a message selector checking for a specific condition in the RFH and the messages by the external tool would not have an RFH header hence the not found/EOF info.

Enjoy
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Problem with JMS program
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.