Thanks for your answer. I do appreciate. But i have some apprehensions 
modifying the source code - I think Jboss controlls all code changes , patch 
etc, and doing on our own probably might not be legal. 

Hence, we have implemented a work-around. When we need re-delivery, we add the 
message back to queue as a new new one with a property called STATUS and value 
as REDELIVER. Another property called REDELIVERY_TIME is set which is equal to 
= current time (in milliseconds) + redelivery delay. Then, we start a 
sychronous consumer thread which runs every sometime and looks for items with 
status RETRY and  REDELIVERY_TIME  <= current time ( uses message selector). 
The main MDB is modified to use a message selector for items with status 
PENDING. This way, MDB doesnt get RETRY status items. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912017#3912017

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912017


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to