You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Laurent Cottereau <la...@cottereau.name> on 2012/11/26 11:59:46 UTC
Injection into filters with Tomcat
Hello,
I have been trying without success to inject an EntityManager into a Filter
on Tomcat 6. Is that supposed to be possible with CODI ? If so, is there
anything special I should look into ? Is @Advanced the correct annotation I
should use on the filter ?
Thank you in advance for any help you will be able to provide me,
--
Laurent Cottereau
laurent@cottereau.name
http://laurent.cottereau.name
Re: Injection into filters with Tomcat
Posted by Laurent Cottereau <la...@cottereau.name>.
Thank you very much for your answer.
--
Laurent Cottereau
laurent@cottereau.name
http://laurent.cottereau.name
2012/11/26 Gerhard Petracek <ge...@gmail.com>
> hi laurent,
>
> first of all: welcome @ myfaces!
>
> that isn't supported out-of-the-box (for filters).
> if you would like to do it on your own, you can have a look at the
> implementation of CodiUtils#tryToInjectFields .
>
> regards,
> gerhard
>
> http://www.irian.at
>
> Your JSF/JavaEE powerhouse -
> JavaEE Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
>
> 2012/11/26 Laurent Cottereau <la...@cottereau.name>
>
> > Hello,
> >
> > I have been trying without success to inject an EntityManager into a
> Filter
> > on Tomcat 6. Is that supposed to be possible with CODI ? If so, is there
> > anything special I should look into ? Is @Advanced the correct
> annotation I
> > should use on the filter ?
> >
> > Thank you in advance for any help you will be able to provide me,
> >
> > --
> > Laurent Cottereau
> > laurent@cottereau.name
> > http://laurent.cottereau.name
> >
>
Re: Injection into filters with Tomcat
Posted by Gerhard Petracek <ge...@gmail.com>.
hi laurent,
first of all: welcome @ myfaces!
that isn't supported out-of-the-box (for filters).
if you would like to do it on your own, you can have a look at the
implementation of CodiUtils#tryToInjectFields .
regards,
gerhard
http://www.irian.at
Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
2012/11/26 Laurent Cottereau <la...@cottereau.name>
> Hello,
>
> I have been trying without success to inject an EntityManager into a Filter
> on Tomcat 6. Is that supposed to be possible with CODI ? If so, is there
> anything special I should look into ? Is @Advanced the correct annotation I
> should use on the filter ?
>
> Thank you in advance for any help you will be able to provide me,
>
> --
> Laurent Cottereau
> laurent@cottereau.name
> http://laurent.cottereau.name
>