Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EFD09200C32 for ; Thu, 9 Mar 2017 16:16:44 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EE877160B67; Thu, 9 Mar 2017 15:16:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 42DA3160B64 for ; Thu, 9 Mar 2017 16:16:44 +0100 (CET) Received: (qmail 37500 invoked by uid 500); 9 Mar 2017 15:16:43 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 37491 invoked by uid 99); 9 Mar 2017 15:16:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Mar 2017 15:16:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E0849C0B13 for ; Thu, 9 Mar 2017 15:16:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.452 X-Spam-Level: * X-Spam-Status: No, score=1.452 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id IX6865qm1rba for ; Thu, 9 Mar 2017 15:16:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id BA9ED5FDE0 for ; Thu, 9 Mar 2017 15:16:41 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3454EE0AF9 for ; Thu, 9 Mar 2017 15:16:39 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 82AEB243C8 for ; Thu, 9 Mar 2017 15:16:38 +0000 (UTC) Date: Thu, 9 Mar 2017 15:16:38 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-10964) CXF http-jetty transport reverse proxy configuration will not work when using @BeanInject in RouteBuilder bean MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 09 Mar 2017 15:16:45 -0000 [ https://issues.apache.org/jira/browse/CAMEL-10964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15903189#comment-15903189 ] ASF GitHub Bot commented on CAMEL-10964: ---------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/camel/pull/1517 > CXF http-jetty transport reverse proxy configuration will not work when using @BeanInject in RouteBuilder bean > -------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-10964 > URL: https://issues.apache.org/jira/browse/CAMEL-10964 > Project: Camel > Issue Type: Bug > Components: camel-blueprint, camel-cxf > Affects Versions: 2.18.2 > Reporter: Tadayoshi Sato > Assignee: Tadayoshi Sato > Fix For: 2.19.0 > > > Inside a {{RouteBuilder}} another bean is injected from registry using {{@BeanInject}}: > {code:java} > public class GreeterBuilder extends RouteBuilder { > @BeanInject > Configuration configuration; > @Override > public void configure() throws Exception { > from("cxf:bean:routerEndpoint") > ... > } > ... > {code} > CXF http-jetty transport is configured with reverse proxy inside blueprint context like this: > {code} > > > > > > > > > > > > > > > > > > > > > > > > > > > > ... > {code} > However, the reverse proxy won't work as long as {{@BeanInject}} is present in the {{RouteBuilder}} bean. > The root cause is that the {{camel-blueprint}}'s {{CamelInjector}} triggers earlier startup of the blueprint Camel context before the route is fully up, so the http-jetty transport configuration is not correctly connected to the CXF endpoint. -- This message was sent by Atlassian JIRA (v6.3.15#6346)