Its a single classloader. Programmatic lookup is just
CDI.current().select(SomeClass.class).select(someAnnotationLiteral).get();
This fails, I would imagine, at least last time I did this on OWB, because
there's no injection point defined
@Inject
@SomeAnnotation
private SomeClass sc;
and the
Hi John
What does the lookup look like? Using the related bean manager un several
apps with success.
Side note: is your classloader well setup?
Le 27 déc. 2016 23:29, "John D. Ament" a écrit :
> Hi,
>
> So I'm starting to run into my old friend, where instance doesn't
Hi,
So I'm starting to run into my old friend, where instance doesn't work the
same in OWB and Weld. Basically anytime I use CDI.current() to resolve a
bean, it fails. The same lookup works when using BeanManager.getReference,
or even the DeltaSpike utilities.
My understanding is that I should
we do something equivalent in meecrowave since we start cdi before servlets
to support listener injections so we extend the listener and impl
contextInitialized
as a noop
think it is quite specific to vendors and if you think a bit more you just
need a start/stop abstraction which is already the
Ok, so in the end I did have to sublcass WebBeansConfigurationListener.
The issue I ran into was that in contextInitialized you're attempting to
start the application. Since I do my servlet initialization in a @Observes
@Initialized(ApplicationScoped.class) callback, OWB was firing the event
that