Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8555

on using Guice modules - give user control on when context starts

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • 3.0.0
    • camel-guice
    • None
    • Unknown

    Description

      In my application i need to do some stuff before i want camel to start. in a normal camel app you would just call main.run().
      The problem on using the camel modules is that they all start the context on "@PostConstruct" so as soon as the injector is constructed the context starts.

      I would suggest a CamelModule or an option (constructor parameter) to disable this auto start behavior. So with disabled autostart one must call org.apache.camel.guice.Main.run().

      Attachments

        Activity

          People

            Unassigned Unassigned
            dermoritz moritz löser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: