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 25 matches
Author Message
  Topic: Get the queue current length
jadaaih

Replies: 15
Views: 30255

PostForum: IBM MQ Java / JMS   Posted: Wed Sep 17, 2008 2:56 am   Subject: Get the queue current length
There still happens to be problems

I pump in 25 MQ messages and when I read, I just get 13 of them after which the application terminates

I am not sure why..Could you please help ...
  Topic: Get the queue current length
jadaaih

Replies: 15
Views: 30255

PostForum: IBM MQ Java / JMS   Posted: Wed Sep 17, 2008 1:47 am   Subject: Get the queue current length
The second issue is cleared...

I had to create new objects for MQMessage when I iterate through the current depth.

But I did not get answers for last couple of questions yet
  Topic: Get the queue current length
jadaaih

Replies: 15
Views: 30255

PostForum: IBM MQ Java / JMS   Posted: Wed Sep 17, 2008 1:43 am   Subject: Get the queue current length
I am unable to loop based on the getCurrentDepth()

The following is the code,

logger.debug("Entering");
MQEnvironment.hostname = properties.get(MQSConstants.STR_LOCAL_HOST_NAME);
...
  Topic: Get the queue current length
jadaaih

Replies: 15
Views: 30255

PostForum: IBM MQ Java / JMS   Posted: Wed Sep 17, 2008 1:05 am   Subject: Get the queue current length
Yes got it...Works with
openOptions = MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_OUTPUT | MQC.MQOO_INQUIRE ;

Couple of questions,

- Is there a way to maintain whatever messages are read in the queue i ...
  Topic: Get the queue current length
jadaaih

Replies: 15
Views: 30255

PostForum: IBM MQ Java / JMS   Posted: Wed Sep 17, 2008 12:02 am   Subject: Get the queue current length
well, did you look up the 2038 returncode? it tells you which open option to use.....

however.... messages could be added to the queue after the inquiry, so your program would not pick them up. why ...
  Topic: Get the queue current length
jadaaih

Replies: 15
Views: 30255

PostForum: IBM MQ Java / JMS   Posted: Tue Sep 16, 2008 10:51 pm   Subject: Get the queue current length
Hi All,

I am trying to read from a queues current depth using the getCurrentDepth() method in the Java API, I am getting the following exception
MQJE001: Completion Code 2, Reason 2038

My op ...
  Topic: Creating Queues, Queue Managers and Channels using Java API?
jadaaih

Replies: 5
Views: 6102

PostForum: IBM MQ Java / JMS   Posted: Fri Sep 12, 2008 3:31 am   Subject: Creating Queues, Queue Managers and Channels using Java API?
Hi Michael,

Thanks for the reply, I have found the PCF command(if I am not wrong) to create queue from following URL,

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.i ...
  Topic: Creating Queues, Queue Managers and Channels using Java API?
jadaaih

Replies: 5
Views: 6102

PostForum: IBM MQ Java / JMS   Posted: Fri Sep 12, 2008 1:42 am   Subject: Creating Queues, Queue Managers and Channels using Java API?
Hi folks,

Back again with some more questions...Is there any way I could create a queue manager, queue and channels using Java API programmatically?

Or its purely going to be command based/exp ...
  Topic: Sending MQMessage to a queue
jadaaih

Replies: 12
Views: 14822

PostForum: IBM MQ Java / JMS   Posted: Thu Sep 11, 2008 10:32 pm   Subject: Sending MQMessage to a queue
Thanks bower...Got the questions answered !!
  Topic: Sending MQMessage to a queue
jadaaih

Replies: 12
Views: 14822

PostForum: IBM MQ Java / JMS   Posted: Thu Sep 11, 2008 4:33 am   Subject: Sending MQMessage to a queue
Anways, Can I send message to any channel irrespective of its type through the java code or is it restricted?
  Topic: Sending MQMessage to a queue
jadaaih

Replies: 12
Views: 14822

PostForum: IBM MQ Java / JMS   Posted: Thu Sep 11, 2008 3:22 am   Subject: Sending MQMessage to a queue
But are you getting the same reason code in your stack trace?

Yes same reason code

MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager ...
  Topic: Sending MQMessage to a queue
jadaaih

Replies: 12
Views: 14822

PostForum: IBM MQ Java / JMS   Posted: Thu Sep 11, 2008 3:13 am   Subject: Sending MQMessage to a queue
I am getting the same stack trace when trying to send a message to a remote queue using the java code,

Queue Manager : QM_ORANGE
Port : 1414
Queue Name : Q1 Type : Remote
Channel Name : QM_ORANG ...
  Topic: Sending MQMessage to a queue
jadaaih

Replies: 12
Views: 14822

PostForum: IBM MQ Java / JMS   Posted: Thu Sep 11, 2008 3:05 am   Subject: Sending MQMessage to a queue
Bingo!! you got it right again...Its working with the port set up...

However I am facing issues in reading such a huge message using readFully method...I had to tweak the VM arguments Heap size...I ...
  Topic: Sending MQMessage to a queue
jadaaih

Replies: 12
Views: 14822

PostForum: IBM MQ Java / JMS   Posted: Thu Sep 11, 2008 2:44 am   Subject: Sending MQMessage to a queue
Are you getting an error that you could post?

Sorry to have missed that out...The following is the trace,

MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue mana ...
  Topic: Sending MQMessage to a queue
jadaaih

Replies: 12
Views: 14822

PostForum: IBM MQ Java / JMS   Posted: Thu Sep 11, 2008 2:11 am   Subject: Sending MQMessage to a queue
Hi Guys,

I am facing a strange issue when sending MQMessage to a queue. The same code was working fine with the default queue but its not working with the newly added queue manager - queue.

I ...
Goto page 1, 2  Next Page 1 of 2

Jump to:  
Protected by Anti-Spam ACP
 
 


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

Copyright © MQSeries.net. All rights reserved.