You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Antonin Stefanutti (JIRA)" <ji...@apache.org> on 2016/03/23 14:38:25 UTC
[jira] [Comment Edited] (CAMEL-5988) provide a startup extension
for CDI - for folks not using JEE
[ https://issues.apache.org/jira/browse/CAMEL-5988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15208403#comment-15208403 ]
Antonin Stefanutti edited comment on CAMEL-5988 at 3/23/16 1:38 PM:
--------------------------------------------------------------------
There are a couple of events that the apps can observe to do some startup but not yet an equivalent of the {{@Startup}} annotation (It's been in discussion for years now :( ).
The Camel CDI extension already has the logic so I wonder whether we could introduce a container-agnostic Camel annotation that the user could use. That being said, Spring rather uses the opposite logic with {{lazy-init}} defaulting to {{false}} and eagerly pre-instantiates all singleton beans at startup so that may only be applicable to CDI.
I already created https://issues.jboss.org/browse/CDI-473 a long time ago so I'll try to reiterate on it for CDI 2.0.
was (Author: antonin.stefanutti):
There are a couple of events that the apps can observe to do some startup but not yet an equivalent of the {{@Startup}} annotation (It's been in discussion for years now :( )
The Camel CDI extension already has the logic so I wonder whether we could introduce a container-agnostic Camel annotation that the user could use. That being said, Spring rather uses the opposite logic with {{lazy-init}} defaulting to {{false}} and eagerly pre-instantiates all singleton beans at startup so that may only be applicable to CDI.
I already created https://issues.jboss.org/browse/CDI-473 a long time ago so I'll try to reiterate on it for CDI 2.0.
> provide a startup extension for CDI - for folks not using JEE
> -------------------------------------------------------------
>
> Key: CAMEL-5988
> URL: https://issues.apache.org/jira/browse/CAMEL-5988
> Project: Camel
> Issue Type: New Feature
> Components: camel-cdi
> Reporter: james strachan
> Assignee: Antonin Stefanutti
> Fix For: Future
>
>
> This looks a handy way to add a @Startup annotation:
> https://gist.github.com/635719
> wonder if something like this could be added to Camel for now until CDI 2.0 / JSR 330 v2 has something like this standardised?
> Would be nice to be able to easily create eager services that startup immediately
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)