git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1004640 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-10-05 13:51:55 +00:00
parent 72b8572303
commit 06d6e08f48
1 changed files with 6 additions and 0 deletions

View File

@ -205,6 +205,12 @@ public class JmsSchedulerTest extends EmbeddedBrokerTestSupport {
MessageConsumer consumer = session.createConsumer(destination);
Message msg = consumer.receive(5000);
assertNotNull("Didn't receive the message", msg);
//send another message
producer = session.createProducer(destination);
message.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_DELAY, time);
producer.send(message);
producer.close();
}
@Override