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);
Environment:
JBoss 5 EAP
Thank you in advance, any help would be greatly appreciated.
Andrew Leasck