Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D724D114B4 for ; Wed, 16 Apr 2014 14:44:34 +0000 (UTC) Received: (qmail 70579 invoked by uid 500); 16 Apr 2014 14:44:24 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 70474 invoked by uid 500); 16 Apr 2014 14:44:18 -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 70379 invoked by uid 99); 16 Apr 2014 14:44:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2014 14:44:17 +0000 Date: Wed, 16 Apr 2014 14:44:17 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-7361) would be nice if org.apache.camel.spring.Main could take a system property or CLI option to package scan classes too MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-7361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13971492#comment-13971492 ] Claus Ibsen commented on CAMEL-7361: ------------------------------------ You can now place a file in META-INF/spring/location.properties (in any JARs on the classpath) which refer to additional spring xml files to load and start. > would be nice if org.apache.camel.spring.Main could take a system property or CLI option to package scan classes too > -------------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-7361 > URL: https://issues.apache.org/jira/browse/CAMEL-7361 > Project: Camel > Issue Type: Improvement > Components: tooling > Reporter: james strachan > Assignee: Claus Ibsen > Fix For: 2.13.1, 2.14.0 > > > Imagine you've some other beans you wanna initialise too in addition to a camel XML. I tried adding a few spring XML files in META-INF/spring/* but then I got an error if one of the spring XML files didn't have camel inside. > So it'd be nice to either allow lots of spring XMLs to be used (and not all of them need camel); or allow some packages to be scanned for @Component / @Service annotations so that we can configure other beans in jars which are not necessarily camel related (e.g. to create some mbeans for monitoring/logging). -- This message was sent by Atlassian JIRA (v6.2#6252)