CAMEL-10128: camel-jt400 - Need to call configure consumer

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/80629f00
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/80629f00
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/80629f00

Branch: refs/heads/camel-2.16.x
Commit: 80629f0019e45e60a055f4404ff5487391550e45
Parents: 64f3047
Author: Claus Ibsen <[email protected]>
Authored: Wed Jul 6 12:40:03 2016 +0200
Committer: Claus Ibsen <[email protected]>
Committed: Wed Jul 6 12:40:58 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/component/jt400/Jt400Endpoint.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/80629f00/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400Endpoint.java
----------------------------------------------------------------------
diff --git 
a/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400Endpoint.java
 
b/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400Endpoint.java
index c102ed7..14767e0 100644
--- 
a/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400Endpoint.java
+++ 
b/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400Endpoint.java
@@ -85,7 +85,9 @@ public class Jt400Endpoint extends DefaultPollingEndpoint {
     @Override
     public Consumer createConsumer(Processor processor) throws Exception {
         if (Jt400Type.DTAQ == configuration.getType()) {
-            return new Jt400DataQueueConsumer(this);
+            Consumer consumer = new Jt400DataQueueConsumer(this);
+            configureConsumer(consumer);
+            return consumer;
         } else {
             throw new OperationNotSupportedException();
         }

Reply via email to