+1
deltaspike-cdictrl [1] contains an API for controlling CDI containers in SE, including
controlling the built-in contexts.
There are currently impls for
* openwebbeans standalone
* weld standalone
* openejb embedded (includes openwebbeans) if you like to start a almost fully blown EE
server in embedded mode.
We could also easily add jbossas7-embedded if some JBoss guys would like to contribute
this. Should be about 100 lines of code or so.
LieGrue,
strub
[1]
http://deltaspike.apache.org/documentation.html#with-java-se
________________________________
From: Pete Muir <pmuir(a)redhat.com>
To: Romain Manni-Bucau <rmannibucau(a)gmail.com>
Cc: cdi-dev(a)lists.jboss.org; Vaibhav Kulkarni <vaibhz(a)gmail.com>
Sent: Friday, 12 July 2013, 17:35
Subject: Re: [cdi-dev] CDI Embedded Mode
Oh yeah, definitely another good approach!
On 12 Jul 2013, at 16:34, Romain Manni-Bucau <rmannibucau(a)gmail.com> wrote:
Hi,
DeltaSpike proposes a "portable" layer on top of both implementations
(CdiContainer)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog:
http://rmannibucau.wordpress.com/
LinkedIn:
http://fr.linkedin.com/in/rmannibucau
Github:
https://github.com/rmannibucau
2013/7/12 Pete Muir <pmuir(a)redhat.com>
Hi,
No, it's not part of the spec in CDI 1.1. We are looking at it for CDI 2.
Both Weld and OpenWebBeans support such a mode though (e.g. look for Weld SE).
Pete
On 20 Jun 2013, at 07:19, Vaibhav Kulkarni <vaibhz(a)gmail.com> wrote:
> Hi,
>
> Can anyone please let me know if the Embedded mode is supported in newly released
CDI 1.1?
>
> Could you also be point me to documentation on how to use it please?
>
> Thanks,
> Vaibhav
>
> _______________________________________________
> cdi-dev mailing list
> cdi-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/cdi-dev
_______________________________________________
cdi-dev mailing list
cdi-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/cdi-dev
_______________________________________________
cdi-dev mailing list
cdi-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/cdi-dev