tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tamás Kimmel <kumm0...@gmail.com>
Subject Re: How to enable DeltaSpike's BeanProvider in TomEE?
Date Wed, 07 Aug 2013 16:52:28 GMT
Just query the BeanManager via JNDI. Not so fast as using a reference from
the extension, but it's simple.

BeanManager bm = (BeanManager)
InitialContext.doLookup("java:comp/BeanManager");



2013/8/2 Romain Manni-Bucau <rmannibucau@gmail.com>

> A cdi extension, observe aftervalidationdeployment event, you can get the
> beanmanager as 2nd parameter.
> Le 2 août 2013 20:07, "Chris Owens" <ctag+openejb@chris-owens.com> a
> écrit :
>
> > Romain Manni-Bucau wrote
> > > Just write an extension holding the beanmanager of the extension
> > > statically, it will be enough.
> >
> > Thanks.  I need more details: An extension of what?   Which beanmanager?
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://openejb.979440.n4.nabble.com/How-to-enable-DeltaSpike-s-BeanProvider-in-TomEE-tp4664480p4664503.html
> > Sent from the OpenEJB User mailing list archive at Nabble.com.
> >
>

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