camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonin Stefanutti (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5988) provide a startup extension for CDI - for folks not using JEE
Date Wed, 23 Mar 2016 13:38:25 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-5988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15208403#comment-15208403
] 

Antonin Stefanutti commented on CAMEL-5988:
-------------------------------------------

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)

Mime
View raw message