This content has been marked as final.
Show 1 reply
-
1. Re: retry delay for MDB
joebarh Mar 19, 2004 1:35 PM (in response to ebdon)With JBoss 3.2.3, there is a JBoss-specific property that you can set on the message prior to publication
here is an example
cat.info("Creating a TextMessage ...");
TextMessage outMessage= topicSession.createTextMessage(outString);
outMessage.setStringProperty( "modifiedDate", modifiedDate );
//JBoss specific property to delay retry after failure to publish
outMessage.setLongProperty("JMS_JBOSS_REDELIVERY_DELAY", 10000);
cat.info("Publish the message to: " + topic.getTopicName());
topicPublisher.publish(outMessage);
the delay is in milliseconds.
Good luck
Joe