-
1. Re: Will WebBeans (JCDI) work in JAX-WS endpoints, context listeners, jsf phase listeners, etc?
nickarls Apr 24, 2009 7:34 AM (in response to rdelaplante)One would think that if its technically feasible it will be done (in Seam 3 if not in JCDI)
-
2. Re: Will WebBeans (JCDI) work in JAX-WS endpoints, context listeners, jsf phase listeners, etc?
rdelaplante Apr 24, 2009 2:13 PM (in response to rdelaplante)Thanks. I would hope that the Java EE6 committee forces JSR299 into complete integration with Java EE because integration is absolutely critical for its acceptance.
-
3. Re: Will WebBeans (JCDI) work in JAX-WS endpoints, context listeners, jsf phase listeners, etc?
gavin.king May 12, 2009 9:48 AM (in response to rdelaplante)The answer is absolutely yes. This is one of the main goals of the more recent 299 spec revs.
-
4. Re: Will WebBeans (JCDI) work in JAX-WS endpoints, context listeners, jsf phase listeners, etc?
languidlanguid Apr 24, 2010 1:08 PM (in response to rdelaplante)There is a another post on using seam with JAX-WS clients,
JaxWS Client Factory Componentwhich I'm going to be introducing into a Seam app soon (hope it works!)
It would be nice to be able to do this in CDI?
i.e. inject a jax-ws client service into a CDI beans.
The docs seems to talk about being able to inject CDI beans into a JAX-WS service endpoint but not the other way round.
This is probably dependent on the XML Bean Config Module since the JAX-WS client proxy classes are in most cases deployed in a jar file without the components.xml file that flags to CDI that the jar file contains CDI beans (hence the approach in the link above for Seam 2)
-
5. Re: Will WebBeans (JCDI) work in JAX-WS endpoints, context listeners, jsf phase listeners, etc?
languidlanguid Apr 24, 2010 1:42 PM (in response to rdelaplante)Looking at the CDI API documentation it looks like I should be doing
@Produces @WebServiceRef(lookup="java:app/service/PaymentService")
PaymentService paymentService;
Not sure if this will work
@Produces @WebServiceRef(wsdlLocaton="http://www.amazon.com/paymentservice")
PaymentService paymentService;Which is tempting as I don't want to have to bind an external web service client resource to JNDI in my container?
-
6. Re: Will WebBeans (JCDI) work in JAX-WS endpoints, context listeners, jsf phase listeners, etc?
pmuir Apr 26, 2010 12:32 PM (in response to rdelaplante)CDI doesn't change how @WebServiceRef works in any way, so anything you can do with it, you should be able to use in CDI.