users@jersey.java.net

[Jersey] CDI with Jersey and Tomcat7 - Interceptors are never invoked‏

From: srinannapa <snp.forum_at_outlook.com>
Date: Thu, 4 Dec 2014 18:50:17 -0700 (MST)

 
 
I'm trying to work CDI interceptors with Jersy abd Tomcat 7. But it never
worked. Can some one please help me.

I'm kind of trying the example provided by Jersey with some minor
modifications.

Here is my code. Interestingly I can see the message "Injected....." in the
output, means @PostConstruct annotation is working.

Please find the attached project.

cdi-webapp.zip
<http://jersey.576304.n2.nabble.com/file/n7582920/cdi-webapp.zip>
 

I'm referring to the following classes in the attached project:
 
EchoParamFieldResource.java
Logged
LoggedInterceptor
LoggedInterceptorTest
beans.xml




--
View this message in context: http://jersey.576304.n2.nabble.com/CDI-with-Jersey-and-Tomcat7-Interceptors-are-never-invoked-tp7582920.html
Sent from the Jersey mailing list archive at Nabble.com.