deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: @Startup like?
Date Tue, 16 Oct 2012 12:41:28 GMT
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 <rdebusscher@gmail.com>

> 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 <gerhard.petracek@gmail.com
> >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 <rmannibucau@gmail.com>
> >
> > > 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 <struberg@yahoo.de>
> > >
> > > >
> > > >
> > > > 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 <rmannibucau@gmail.com>
> > > > >To: deltaspike-dev@incubator.apache.org; Mark Struberg <
> > > struberg@yahoo.de
> > > > >
> > > > >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 <struberg@yahoo.de>
> > > > >
> > > > >
> > > > >>
> > > > >>@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 <jeanouii@gmail.com>
> > > > >>> To: deltaspike-dev@incubator.apache.org
> > > > >>> 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 <rmannibucau@gmail.com>
> > > > >>>
> > > > >>>>  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*
> > > > >>>>
> > > > >>>
> > > > >>
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>

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