2 Replies Latest reply on Apr 26, 2004 2:51 PM by stephanenicoll

    Reschedule delivery

    osoe

      This has reference to earlier post (link is given below) where it talks about the new feature added 3.2.2 and above to set the New vendor-specific JMS properties for redelivery scheduling.
      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=35326

      I am using 3.2.3 and the code snippet in my onMessage() method is as below:

      long at = System.currentTimeMillis() + 60 * 1000 * 5;
       message.setLongProperty(
       "JMS_JBOSS_REDELIVERY_DELAY", at);
      


      At run time I get the following exception.

      javax.jms.MessageNotWriteableException: Properties are read-only
       at org.jboss.mq.SpyMessage.setLongProperty(SpyMessage.java:491


      Thanks for your help