|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
[Solved]JMS Expiration setting |
« View previous topic :: View next topic » |
Author |
Message
|
yaakovd |
Posted: Tue Jul 08, 2003 7:01 am Post subject: [Solved]JMS Expiration setting |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
Hi,
I have some very simple task, but...
In my aplication I read messages from MQ (5.2.1 on NT) using Message Driven Bean (on Web Logic 6.1 SP4).
The application duplicates the message.
First message is sent to destination 1 without any changes.
Second message should get expiration around 2 minutes in MQMD.Expiry field.
I'm using JMS API. Receiving-sending working properly. Also I can change JMSCorrelId.
But method setJMSExpiration() is not working. And I found following in MQSeries "Using Java" guide:
Quote: |
Set the message’s expiration value.
Any value set using this method is ignored when the message is sent, but
this method can be used to change the value in a received message. |
So, what the solution?
I'll appreciate any help.[/quote] _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel
Last edited by yaakovd on Tue Jul 08, 2003 7:40 am; edited 1 time in total |
|
Back to top |
|
 |
yaakovd |
Posted: Tue Jul 08, 2003 7:39 am Post subject: |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
Solved using MessageProducer.setTimeToLive(long). _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel |
|
Back to top |
|
 |
melmas |
Posted: Fri Feb 11, 2005 3:10 pm Post subject: |
|
|
Newbie
Joined: 11 Feb 2005 Posts: 4
|
If we have a req to publish different messages with different expiration times, instead of setting the time to live to at the MessageProducer level,
could you specify at the time of publishing the message using the overloaded ublic void publish(Message message, int deliveryMode, int priority, long timeToLive)? |
|
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
|
|
|
|