the point is you generally attach the startup bean to the framework it is linked to. When you don't have any framework what do you use in a lib (based on cdi)?
*Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2012/10/16 Rudy De Busscher <[email protected]> > There are indeed all kind of other scenarios of @startup where you need > JSF. I have used it already to overwrite some standard JSF converters. > > Rudy > > On 16 October 2012 13:37, Gerhard Petracek <[email protected] > >wrote: > > > there are several requirements which aren't related to a db... > > (in most cases such functionality gets triggered during the first > request. > > that's currently the only workaround which works for all constellations > > i've seen so far.) > > > > regards, > > gerhard > > > > > > > > 2012/10/16 Romain Manni-Bucau <[email protected]> > > > > > hmm, > > > > > > not in @Startup > > > > > > let think to a database provisionning using the DS datasources > > > > > > *Romain Manni-Bucau* > > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > > > *Blog: **http://rmannibucau.wordpress.com/*< > > > http://rmannibucau.wordpress.com/> > > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > > > *Github: https://github.com/rmannibucau* > > > > > > > > > > > > > > > 2012/10/16 Mark Struberg <[email protected]> > > > > > > > > > > > > > > > Yes it works fine if you only need EJB stuff, but in Extensions you > > > pretty > > > > often need to interact with other frameworks > > > > > > > > LieGrue, > > > > strub > > > > > > > > >________________________________ > > > > > From: Romain Manni-Bucau <[email protected]> > > > > >To: [email protected]; Mark Struberg < > > > [email protected] > > > > > > > > > >Sent: Tuesday, October 16, 2012 12:01 PM > > > > >Subject: Re: @Startup like? > > > > > > > > > > > > > > >That's not an issue IMO, > > > > > > > > > > > > > > >Personally i abuse of it to initialize stuff wich is needed later > but > > > not > > > > linked to any other spec > > > > > > > > > > > > > > >Romain Manni-Bucau > > > > >Twitter: @rmannibucau > > > > >Blog: http://rmannibucau.wordpress.com/ > > > > >LinkedIn: http://fr.linkedin.com/in/rmannibucau > > > > >Github: https://github.com/rmannibucau > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >2012/10/16 Mark Struberg <[email protected]> > > > > > > > > > > > > > > >> > > > > >>@Startup is perfectly broken as well. Read 4.8.1 > > > > >> > > > > >>" 4.8.1 Singleton Initialization ...the container must initialize > the > > > > Singleton bean > > > > >>instance during the application startup sequence...." > > > > >> > > > > >> > > > > >>It does NOT define whether other parts of the container must > already > > be > > > > available. I've noticed that @Startup beans get initialized _before_ > > the > > > > JSF container is fully booted. > > > > >> > > > > >> > > > > >>What is missing is a general startup order for EE containers. > > Including > > > > events. > > > > >> > > > > >> > > > > >> > > > > >>LieGrue, > > > > >>strub > > > > >> > > > > >>----- Original Message ----- > > > > >> > > > > >>> From: Jean-Louis MONTEIRO <[email protected]> > > > > >>> To: [email protected] > > > > >>> Cc: > > > > >> > > > > >>> Sent: Tuesday, October 16, 2012 9:20 AM > > > > >>> Subject: Re: @Startup like? > > > > >>> > > > > >>> Basically, what has been defined for Singleton beans (@Startup > and > > > > >>> @DependsOn)? > > > > >>> > > > > >>> Jean-Louis > > > > >>> > > > > >>> 2012/10/16 Romain Manni-Bucau <[email protected]> > > > > >>> > > > > >>>> Hi guys, > > > > >>>> > > > > >>>> after a talk with Charles i wonder if we couldn't add a kind of > > > > >>>> @Startup/@LoadOnStartup feature to DS. > > > > >>>> > > > > >>>> The idea could be to for the init of some bean with the last > cdi > > > > event at > > > > >>>> startup. > > > > >>>> > > > > >>>> It could be used to force some init in standalone (cdictrl) or > > > > without > > > > >>>> being dependent of the environment (JSE, JEE, Web...) > > > > >>>> > > > > >>>> wdyt? > > > > >>>> > > > > >>>> *Romain Manni-Bucau* > > > > >>>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > > > > >>>> *Blog: **http://rmannibucau.wordpress.com/*< > > > > >>>> http://rmannibucau.wordpress.com/> > > > > >>>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > > > > >>>> *Github: https://github.com/rmannibucau* > > > > >>>> > > > > >>> > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > >
