Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 31479 invoked from network); 22 Feb 2011 08:38:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Feb 2011 08:38:04 -0000 Received: (qmail 75494 invoked by uid 500); 22 Feb 2011 08:38:04 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 75295 invoked by uid 500); 22 Feb 2011 08:38:02 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 75285 invoked by uid 99); 22 Feb 2011 08:38:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 08:38:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 08:37:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 708851B1FE2 for ; Tue, 22 Feb 2011 08:37:38 +0000 (UTC) Date: Tue, 22 Feb 2011 08:37:38 +0000 (UTC) From: "Christian Schneider (JIRA)" To: dev@camel.apache.org Message-ID: <842753120.7757.1298363858441.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (CAMEL-3549) It should be possible to configure the CamelHttpTransportServlet using the spring ContextLoaderListener MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-3549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997685#comment-12997685 ] Christian Schneider commented on CAMEL-3549: -------------------------------------------- Hi Claus, I found the duplicate and closed the other issue > It should be possible to configure the CamelHttpTransportServlet using the spring ContextLoaderListener > ------------------------------------------------------------------------------------------------------- > > Key: CAMEL-3549 > URL: https://issues.apache.org/jira/browse/CAMEL-3549 > Project: Camel > Issue Type: Improvement > Components: camel-servlet > Affects Versions: 2.5.0 > Reporter: Christian Schneider > Assignee: Christian Schneider > Fix For: 2.7.0 > > > The spring security example uses two different spring contexts. > The first is pulled up using the spring ContextLoaderListener. It is used to hook spring security into a filter. > The second is pulled up by the CamelHttpTransportServlet. There is the main configuration includeing the camel context. > I think this is quite ugly and makes things more complicated than they need to be. Especially if you also need the camel context outside the camel servlet. > So I propose to change the code of the Camel Servlet component to simply use the spring context from the ContextLoaderListener. I can try to do the change myself but would be happy for any comments why this was designed so and where I have to be careful. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira