[jboss-user] [JBoss Web Services] - Re: CDI @Inject in a JAX-WS service impl?
Paul Robinson
do-not-reply at jboss.com
Mon Feb 20 10:08:11 EST 2012
Paul Robinson [https://community.jboss.org/people/paul.robinson] created the discussion
"Re: CDI @Inject in a JAX-WS service impl?"
To view the discussion, visit: https://community.jboss.org/message/718014#718014
--------------------------------------------------------------
Richard,
I've also been talking to Ales on IRC about this issue. He asked for a failing Arquillian test in the Weld suite. I'm including it here as it may explain better, what I'm trying to get working:
https://github.com/paulrobinson/core/blob/JAXWS_POJO_with_CDI_interceptor/tests-arquillian/src/test/java/org/jboss/weld/tests/interceptors/jaxws/InterceptorTest.java https://github.com/paulrobinson/core/blob/JAXWS_POJO_with_CDI_interceptor/tests-arquillian/src/test/java/org/jboss/weld/tests/interceptors/jaxws/InterceptorTest.java
You can run the test by:
Boot AS7.1.0.Final
git clone git at github.com:paulrobinson/core.git
cd core
git checkout JAXWS_POJO_with_CDI_interceptor
cd tests-arquillian/
mvn install -Pincontainer-remote -Dtest=org.jboss.weld.tests.interceptors.jaxws.InterceptorTest
Observe that the test fails with message:
junit.framework.AssertionFailedError: Interceptor not invoked
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/718014#718014]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120220/7fbf5136/attachment.html
More information about the jboss-user
mailing list