Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 3469 invoked from network); 15 May 2010 18:09:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 May 2010 18:09:12 -0000 Received: (qmail 82992 invoked by uid 500); 15 May 2010 18:09:12 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 82933 invoked by uid 500); 15 May 2010 18:09:12 -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 82925 invoked by uid 500); 15 May 2010 18:09:12 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 82922 invoked by uid 99); 15 May 2010 18:09:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 May 2010 18:09:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 May 2010 18:09:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4FI8mvW012688 for ; Sat, 15 May 2010 18:08:49 GMT Message-ID: <10204777.291273946928763.JavaMail.jira@thor> Date: Sat, 15 May 2010 14:08:48 -0400 (EDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Resolved: (CAMEL-1613) Provide a CamelServer for testing/demo/small apps purposes In-Reply-To: <348704801.1242281510578.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-1613. -------------------------------- Fix Version/s: (was: Future) Resolution: Won't Fix > Provide a CamelServer for testing/demo/small apps purposes > ---------------------------------------------------------- > > Key: CAMEL-1613 > URL: https://issues.apache.org/activemq/browse/CAMEL-1613 > Project: Apache Camel > Issue Type: New Feature > Components: camel-core > Affects Versions: 2.0-M2 > Environment: Any > Reporter: Bruno Borges > > It's common to code a "CamelStartup" class to call through maven-camel-plugin or directly from the IDE. > But now all threads inside CamelContext are daemon, causing the VM to shutdown right after the main() method is called, even if the Context is still starting. > The Main class from camel-spring should have a version on camel-core for projects not Spring-related. > The Maven plugin should then check the configured class to see if it is Spring based (org.apache.camel.spring.Main) or a standalone application (org.apache.camel.server.CamelServer). > > org.apache.camel > camel-maven-plugin > > org.apache.camel.twitter.demo.CamelStartup > > > public class CamelStartup { > public static void main(String[] args) { > CamelServer server = new CamelServer(); > server.addContext(new MyContext()); > server.start(); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.