https://issues.apache.org/jira/browse/AMQ-2710 - use original destination from the message original for the test

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1089037 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2011-04-05 13:38:29 +00:00
parent 2327e3975b
commit 2f869e32d0
1 changed files with 1 additions and 3 deletions

View File

@ -92,9 +92,7 @@ public class CamelRedeliveryTest extends AbstractJUnit38SpringContextTests {
@RecipientList @Handler
public String routeTo(ActiveMQMessage body) throws Exception {
ActiveMQDestination originalDestination = new ActiveMQQueue("camelRedeliveryQ");
// or pull value from the message; body.getOriginalDestination();
ActiveMQDestination originalDestination = body.getOriginalDestination();
return "activemq:" + originalDestination.getPhysicalName() + "?explicitQosEnabled=true&messageConverter=#messageConverter";
}
}