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 Java / JMS » [Solved]JMS Expiration setting

Post new topic  Reply to topic
 [Solved]JMS Expiration setting « View previous topic :: View next topic » 
Author Message
yaakovd
PostPosted: Tue Jul 08, 2003 7:01 am    Post subject: [Solved]JMS Expiration setting Reply with quote

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
View user's profile Send private message Send e-mail
yaakovd
PostPosted: Tue Jul 08, 2003 7:39 am    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

Solved using MessageProducer.setTimeToLive(long).
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
melmas
PostPosted: Fri Feb 11, 2005 3:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » [Solved]JMS Expiration setting
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.