Author |
Message |
Topic: Find out message date |
jasmin
Replies: 10 Views: 5648
|
Forum: IBM MQ Java / JMS Posted: Wed Jan 11, 2006 1:36 am Subject: Find out message date |
I've tried the putDateTime field of MQMD. That's exactely what I need to know.
Thank you for your help.  |
Topic: Find out message date |
jasmin
Replies: 10 Views: 5648
|
Forum: IBM MQ Java / JMS Posted: Tue Jan 10, 2006 5:28 am Subject: Find out message date |
???
My java application performes a get on the queue. Now I want to check the date of the message, which is an object of the class MQMessage of the com.ibm.mq package.
You said it's possible to requ ... |
Topic: Find out message date |
jasmin
Replies: 10 Views: 5648
|
Forum: IBM MQ Java / JMS Posted: Tue Jan 10, 2006 5:18 am Subject: Find out message date |
But do you know in which class of the com.ibm.mq package? |
Topic: Find out message date |
jasmin
Replies: 10 Views: 5648
|
Forum: IBM MQ Java / JMS Posted: Tue Jan 10, 2006 5:13 am Subject: Find out message date |
So where do I find the method for this request of put date and time? |
Topic: Find out message date |
jasmin
Replies: 10 Views: 5648
|
Forum: IBM MQ Java / JMS Posted: Tue Jan 10, 2006 3:33 am Subject: Find out message date |
Hello.
Is there a possibility to find out, once you get a message from the queue, when this message was created?
Thanks,
Jasmin. |
Topic: Problems with accessing the queue several times in a row |
jasmin
Replies: 10 Views: 7136
|
Forum: IBM MQ Java / JMS Posted: Thu Dec 08, 2005 11:36 pm Subject: Problems with accessing the queue several times in a row |
Ok, you've convinced me. Could you post a sample code for doing it the other way? |
Topic: Problems with accessing the queue several times in a row |
jasmin
Replies: 10 Views: 7136
|
Forum: IBM MQ Java / JMS Posted: Thu Dec 08, 2005 7:46 am Subject: Problems with accessing the queue several times in a row |
Regardless, trying to use the queue depth is not the right way to find out when the queue is empty - for a lot of reasons. The right way is to keep getting messages until you get back MQRC_NO_MORE_M ... |
Topic: Problems with accessing the queue several times in a row |
jasmin
Replies: 10 Views: 7136
|
Forum: IBM MQ Java / JMS Posted: Thu Dec 08, 2005 7:27 am Subject: Problems with accessing the queue several times in a row |
Besides, what exactely means error code 2033? |
Topic: Problems with accessing the queue several times in a row |
jasmin
Replies: 10 Views: 7136
|
Forum: IBM MQ Java / JMS Posted: Thu Dec 08, 2005 7:22 am Subject: Problems with accessing the queue several times in a row |
Actually the queue depth does go down with BROWSE, as it shows when you have a System.out.println() before and after the get.
Anyway, I've got know idea how else I could request all messages in a l ... |
Topic: Problems with accessing the queue several times in a row |
jasmin
Replies: 10 Views: 7136
|
Forum: IBM MQ Java / JMS Posted: Thu Dec 08, 2005 7:06 am Subject: Problems with accessing the queue several times in a row |
Hi.
I use the com.ibm.mq.jar library to access a message queue with my java application.
When I try to get a single message from the queue, my program works fine.
int openOptionsGET = MQC.MQ ... |
Topic: Convert message to String |
jasmin
Replies: 9 Views: 15740
|
Forum: IBM MQ Java / JMS Posted: Thu Nov 10, 2005 7:03 am Subject: Convert message to String |
Ok, now I've just changed the GetMessageOptions and it's working.
Thanks for helping. |
Topic: Convert message to String |
jasmin
Replies: 9 Views: 15740
|
Forum: IBM MQ Java / JMS Posted: Thu Nov 10, 2005 6:36 am Subject: Convert message to String |
Ok, found them. So what do I have to do now? How can I check the messages? |
Topic: Convert message to String |
jasmin
Replies: 9 Views: 15740
|
Forum: IBM MQ Java / JMS Posted: Thu Nov 10, 2005 6:00 am Subject: Convert message to String |
Hi fschofer,
here are the get message options:
MQGetMessageOptions gmo = new MQGetMessageOptions();
gmo.options = MQC.MQGMO_ACCEPT_TRUNCATED_MSG | MQC.MQGMO_CONVERT;
Hi jeffl ... |
Topic: Convert message to String |
jasmin
Replies: 9 Views: 15740
|
Forum: IBM MQ Java / JMS Posted: Thu Nov 10, 2005 4:30 am Subject: Convert message to String |
Hello,
I've written a Java program, trying to get Messages from a queue and storing the
message in a String.
See following code fragment:
MyQueue_GET.get(MyMessage_GET, gmo);
Stri ... |
Topic: API for com.ibm.mq |
jasmin
Replies: 1 Views: 1870
|
Forum: General Discussion Posted: Fri Nov 04, 2005 4:44 am Subject: API for com.ibm.mq |
Hey,
I've recently started to use WebShpereMQ with Java (means I use the package "com.ibm.mq.jar").
Does anybody know if there's an API for that package? I couldn't find any on the ibm sites.
... |