From 2f869e32d0bee6176cb18b77c950bd8d3edc63d3 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Tue, 5 Apr 2011 13:38:29 +0000 Subject: [PATCH] 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 --- .../java/org/apache/activemq/camel/CamelRedeliveryTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/activemq-camel/src/test/java/org/apache/activemq/camel/CamelRedeliveryTest.java b/activemq-camel/src/test/java/org/apache/activemq/camel/CamelRedeliveryTest.java index 1c3ac58c4e..c62b02966e 100644 --- a/activemq-camel/src/test/java/org/apache/activemq/camel/CamelRedeliveryTest.java +++ b/activemq-camel/src/test/java/org/apache/activemq/camel/CamelRedeliveryTest.java @@ -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"; } }