camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Moulliard (JIRA)" <>
Subject [jira] [Created] (CAMEL-9259) enableTrace of the Main class doesn't work
Date Tue, 27 Oct 2015 06:13:27 GMT
Charles Moulliard created CAMEL-9259:

             Summary: enableTrace of the Main class doesn't work
                 Key: CAMEL-9259
             Project: Camel
          Issue Type: Bug
          Components: el-core, camel-core
    Affects Versions: 2.15.3
            Reporter: Charles Moulliard

The enableTrace() method of the Camel Main class doesn't work.
When we setup the code as such

    public static void main(String... args) throws Exception {
        Main main = new Main();
        main.addRouteBuilder(new MyRouteBuilder());

and launch the Main class, than the messages reported by the route in the log are not traced
at all.

If we debug, we can see that there is not CamelContext object when this method of the MainSupport
class is called

    public void enableTrace() {
        this.trace = true;
        for (CamelContext context : camelContexts) { // EMPTY

The workaround is to enable the tracing within the route definition

    public void configure() {


This message was sent by Atlassian JIRA

View raw message