Hi

servlet are managed by servlet container but is integrated a with
CDI/EJB/Resource... as per JavaEE spec.

You can use Deltaspike BeanProvider to integrate CDI with any class
(or redo the same logic which is simple and depend on BeanManager
available using a lookup from any webapp)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-02-10 10:19 GMT+01:00 Martin Funk <[email protected]>:
> Hi,
>
> I have a questions of understanding.
>
> As I understand servlets instantiated in an TomEE Server are under control of 
> CDI (if a beans.xml is present) and of EJB.
>
> Is that behavior part of the JEE Spec or is that a property of the TomEE 
> Container? I assume the later.
>
> Is there a way to configure TomEE to bring an arbitrary Class of an war file 
> under the control of CDI or EJB?
>
> Martin

Reply via email to