You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2019/06/12 08:01:00 UTC
[jira] [Resolved] (CAMEL-8555) on using Guice modules - give user
control on when context starts
[ https://issues.apache.org/jira/browse/CAMEL-8555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-8555.
--------------------------------
Resolution: Won't Fix
Fix Version/s: 3.0.0
camel-guice is deprecated and removed from camel 3 onwards
> on using Guice modules - give user control on when context starts
> -----------------------------------------------------------------
>
> Key: CAMEL-8555
> URL: https://issues.apache.org/jira/browse/CAMEL-8555
> Project: Camel
> Issue Type: Improvement
> Components: camel-guice
> Reporter: moritz löser
> Priority: Minor
> Fix For: 3.0.0
>
>
> 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().
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)