camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonin Stefanutti (JIRA)" <>
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


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 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:
>             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:
> 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

View raw message