[cdi-dev] Multiple CDI containers per ClassLoader

Todor Boev rinsvind at gmail.com
Fri Sep 8 06:02:43 EDT 2017


To clarify:
http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#provider_se
Does not forbid such calls.

On Fri, Sep 8, 2017 at 12:58 PM, Todor Boev <rinsvind at gmail.com> wrote:

> Hi all,
>
> The javax.enterprise.inject.se.SeContainerInitializer seems to allow me
> to create and use simultaneously multiple CDI containers.
> Furthermore I don't seem to be required to setup each one with it's own
> ClassLoader.
> If I create multiple containers over the same ClassLoader, what would it
> mean to call javax.enterprise.inject.spi.CDI.current() in each one?
>
> Regards,
> Todor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20170908/21b90e11/attachment.html 


More information about the cdi-dev mailing list