Community

Can I simulate JMS_JBOSS_DO_NOT_DELIVER_BEFORE?

reply from Richard Kennard in JBoss Messaging - View the full discussion

To those that come this way after me...

 

I solved this problem by sending a message with JMS_JBOSS_SCHEDULED_DELIVERY as usual, then having a little bit of code at the top of my MDB that does...

 

if ( message.getObjectProperty( "JMS_JBOSS_SCHEDULED_DELIVERY" ) != null )

     JmsUtils.requeue( message );

 

...where 'requeue' puts the message back to the end of the queue, omitting the JMS_JBOSS_SCHEDULED_DELIVERY property.

 

In effect, doing a 'delayed send to end of queue'.

 

Richard.

 

 

 

 

Reply to this message by going to Community

Start a new discussion in JBoss Messaging at Community