camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Borges (JIRA)" <>
Subject [jira] Created: (CAMEL-1613) Provide a CamelServer for testing/demo/small apps purposes
Date Thu, 14 May 2009 06:11:50 GMT
Provide a CamelServer for testing/demo/small apps purposes

                 Key: CAMEL-1613
             Project: Apache Camel
          Issue Type: New Feature
          Components: camel-core
    Affects Versions: 2.1.0
         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).


public class CamelStartup {
  public static void main(String[] args) {
     CamelServer server = new CamelServer();
     server.addContext(new MyContext());

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message