0 Replies Latest reply on Aug 27, 2011 10:50 AM by Andrew Leasck

    How to set JMS Message properties using MDP

    Andrew Leasck Newbie

      I have a requirement to set a scheduled delivery property on various messages.  I have been converted most of the applicaitons MDBs to MDPs and until now the transition has been simple, however, given the documentation I was able to locate I was unable to identify a way to add JMS Message properties to the MDP Producer.  I have provided a simple example of what I am currently doing with the MDB that I am hoping is possible with the MDP approach.


      MDB Message Example:

      Message msg = sess.createMessage(); 

      msg.setLongProperty(JBossMessage.JMS_JBOSS_SCHEDULED_DELIVERY_PROP_NAME, now + 1000 * 60 * 60 * 2);



      JBoss 5 EAP


      Thank you in advance, any help would be greatly appreciated.


      Andrew Leasck