tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Louis MONTEIRO <jeano...@gmail.com>
Subject Re: Create CDI bean on application startup
Date Mon, 20 Jan 2014 17:30:37 GMT
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" <rmannibucau@gmail.com> 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 <helge@waastad.org>:
> > 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message