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 » Search

 Search found 14 matches
Author Message
  Topic: Question about MQMessage.readString()
pjramana

Replies: 5
Views: 5096

PostForum: IBM MQ Java / JMS   Posted: Mon Mar 22, 2004 12:57 pm   Subject: Question about MQMessage.readString()
this.sentMessage.seek(0) worked perfect.

was i getting that EOFException because of the message read pointer pointing at the end of the message?

I am curious to know the way that MQMessage w ...
  Topic: Question about MQMessage.readString()
pjramana

Replies: 5
Views: 5096

PostForum: IBM MQ Java / JMS   Posted: Mon Mar 22, 2004 12:31 pm   Subject: Question about MQMessage.readString()
This is the line that is giving the problem.

System.out.println("Writing Message to Queue:"+ this.sentMessage.readString(this.sentMessage.getMessageLength())); //Last line in the code snippet.
  Topic: Question about MQMessage.readString()
pjramana

Replies: 5
Views: 5096

PostForum: IBM MQ Java / JMS   Posted: Mon Mar 22, 2004 12:29 pm   Subject: Question about MQMessage.readString()
I am trying to print the message that i set in MQMessage object. And i am getting java.io.EOFException.

The code snipped looks like this.

String message = "SOME String that is 700+ ...
  Topic: Regarding MQGMO WaitInterval.
pjramana

Replies: 3
Views: 8280

PostForum: IBM MQ Java / JMS   Posted: Thu Mar 18, 2004 3:24 pm   Subject: Regarding MQGMO WaitInterval.
Thanks for the replies.

StefanSievert:

I corrected my optioins and it seems to be working fine.

Now it looks like


gmo.matchOptions = MQC.MQMO_MATCH_CORREL_ID + ...
  Topic: Regarding MQGMO WaitInterval.
pjramana

Replies: 3
Views: 8280

PostForum: IBM MQ Java / JMS   Posted: Thu Mar 18, 2004 1:54 pm   Subject: Regarding MQGMO WaitInterval.
I am using following options to wait on a particular queue.

gmo.matchOptions = MQC.MQMO_MATCH_CORREL_ID | MQC.MQMO_MATCH_MSG_ID | MQC.MQGMO_WAIT;
gmo.waitInterval = 30000; // 30 sec
...
  Topic: Conecting Remote Qmanager thru base Java MQ.
pjramana

Replies: 12
Views: 6482

PostForum: IBM MQ Java / JMS   Posted: Wed Mar 17, 2004 11:50 am   Subject: Conecting Remote Qmanager thru base Java MQ.
Atlast it seems to be working now, i specified MQC.MQOO_BIND_NOT_FIXED option on MQQueue open options. My program was able to connect to the cluster queue "REQUEST_QUEUE".

These are the ope ...
  Topic: Conecting Remote Qmanager thru base Java MQ.
pjramana

Replies: 12
Views: 6482

PostForum: IBM MQ Java / JMS   Posted: Wed Mar 17, 2004 10:46 am   Subject: Conecting Remote Qmanager thru base Java MQ.
Hi EddieA,

Thanks for the reply.

I am trying to use base Java MQ. I am not using MQJMS.

Thanks,
Janaki.
  Topic: Conecting Remote Qmanager thru base Java MQ.
pjramana

Replies: 12
Views: 6482

PostForum: IBM MQ Java / JMS   Posted: Wed Mar 17, 2004 10:44 am   Subject: Conecting Remote Qmanager thru base Java MQ.
Yes... there was some problem with the cluster, i couldn't see the clustered queue when i did

dis qcluster(*).

Now my mq support team corrected the problem, not sure what they ...
  Topic: Conecting Remote Qmanager thru base Java MQ.
pjramana

Replies: 12
Views: 6482

PostForum: IBM MQ Java / JMS   Posted: Wed Mar 17, 2004 8:41 am   Subject: Conecting Remote Qmanager thru base Java MQ.
Now i tried with just the QMGR1, and i am trying to access the REQUEST.QUEUE which is plysically on QMGR2, but is in cluster, i am getting error
MQJE001: Completion Code 2, Reason 2085

Whisi i ...
  Topic: Conecting Remote Qmanager thru base Java MQ.
pjramana

Replies: 12
Views: 6482

PostForum: IBM MQ Java / JMS   Posted: Tue Mar 16, 2004 8:38 pm   Subject: Conecting Remote Qmanager thru base Java MQ.
Hi Jefflowrey:

Thanks for the replies.

My java process runs on the box with AIX on it with QMGR1 in the example given. I was thinking that we do Client connections when there is no QueueMana ...
  Topic: Conecting Remote Qmanager thru base Java MQ.
pjramana

Replies: 12
Views: 6482

PostForum: IBM MQ Java / JMS   Posted: Tue Mar 16, 2004 8:13 pm   Subject: Conecting Remote Qmanager thru base Java MQ.
Yes i am using local queue manager. The queues are set up like this.

QMGR1 --- LOCAL_QUEUE_1 -- QALIAS_FOR_LOCALQUEUE_1 -- AIX Box
QMGR2 --- LOCAL_QUEUE_2 -- QALIAS_FOR_LOCALQUEUE_2 -- Solaris ...
  Topic: Conecting Remote Qmanager thru base Java MQ.
pjramana

Replies: 12
Views: 6482

PostForum: IBM MQ Java / JMS   Posted: Tue Mar 16, 2004 3:00 pm   Subject: Conecting Remote Qmanager thru base Java MQ.
Can somebody please provide me a solution for the problem below.

I have two Queue managers QMGR1 on box1 and QMGR2. on box2. Both are in cluster called DEV/CLUS.

QMGR1 has a local queu ...
  Topic: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2
pjramana

Replies: 4
Views: 8382

PostForum: IBM MQ Java / JMS   Posted: Mon Mar 08, 2004 8:58 pm   Subject: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2
I was trying to run "Hello World" program. So the message is not big. Also the system is not loaded at all. What the program does is, it writes Hello World to a queue and Reads it back, thats all. ...
  Topic: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2
pjramana

Replies: 4
Views: 8382

PostForum: IBM MQ Java / JMS   Posted: Mon Mar 08, 2004 1:43 pm   Subject: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2
I got the following error when i tried to run "MQSample.java" program that is in Java MQSeries manual.

I tested it in the following environment
AIX 4.3
Java 1.3.1
MQSeries 5.2

And the s ...
Page 1 of 1

Jump to:  
Protected by Anti-Spam ACP
 
 


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

Copyright © MQSeries.net. All rights reserved.