If it is just one or 2 beans to initialize the application I would use
@singleton and @startup. Copying the same extension over projects or just
using an extension for that is unnecessary IMO. The ejb overhead in that
situation is null and if you need transaction to initialize the database
for example, singleton is way better.
Le 20 janv. 2014 18:26, "Romain Manni-Bucau" <[email protected]> a
écrit :

> this is not 100% working (most often it is btw) - see deltaspike topic
> on it (sorry I don't have the link anymore but I think it was on jira)
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2014/1/20 hwaastad <[email protected]>:
> > You might try this:
> >
> > http://ovaraksin.blogspot.no/2013/02/eager-cdi-beans.html
> >
> > br hw
> >
> >
> >
> > --
> > View this message in context:
> http://openejb.979440.n4.nabble.com/Create-CDI-bean-on-application-startup-tp4667228p4667233.html
> > Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to