[cdi-dev] CDI Embedded Mode

Mark Struberg struberg at yahoo.de
Sat Jul 13 10:35:53 EDT 2013



+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 at redhat.com>
To: Romain Manni-Bucau <rmannibucau at gmail.com> 
Cc: cdi-dev at lists.jboss.org; Vaibhav Kulkarni <vaibhz at 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 at 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 at 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 at 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 at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/cdi-dev
> 
> 
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev
> 


_______________________________________________
cdi-dev mailing list
cdi-dev at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/cdi-dev


More information about the cdi-dev mailing list