Re: [JBoss-user] JMS scheduled redelivery

2003-12-05 Thread Adrian Brock
Message message = session.create[XXX]Message();
// Wait 10 seconds before redelivering a message after a NACK
message.setProperty(JMS_JBOSS_REDELIVERY_DELAY, 1);
sender.send(message);

NOTE: This only works for JBossMQ, 
other JMSs might have different mechanisms.

Also this is done by the sender. If you want this done transparently,
you will have to write your own jbossmq server interceptor to
set the property on the message during addMessage() or transact()

Regards,
Adrian

On Thu, 2003-12-04 at 09:13, [EMAIL PROTECTED] wrote:
 Hi,
 
 I am using Jboss 3.2.2 and a MDB as
 JMS destination. The MDB should take a message
 from the queue, process it and sometimes (if
 processing fails) put it back into the queue.
 
 Is it possible to tell JMS that I want to
 receive the message from the queue again
 after a period of time?
 
 Otherwise I would have to wait in the
 MDB for the specified time before re-processing
 the message which doesn' seem to be good design.
 
 Thanks in advance
 
 Stefan
 
 
 ---
 This SF.net email is sponsored by OSDN's Audience Survey.
 Help shape OSDN's sites and tell us what you think. Take this
 five minute survey and you could win a $250 Gift Certificate.
 http://www.wrgsurveys.com/2003/osdntech03.php?site=8
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JMS scheduled redelivery

2003-12-04 Thread stscit04
Hi,

I am using Jboss 3.2.2 and a MDB as
JMS destination. The MDB should take a message
from the queue, process it and sometimes (if
processing fails) put it back into the queue.

Is it possible to tell JMS that I want to
receive the message from the queue again
after a period of time?

Otherwise I would have to wait in the
MDB for the specified time before re-processing
the message which doesn' seem to be good design.

Thanks in advance

Stefan


---
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user