This content has been marked as final.
Show 1 reply
-
1. Re: EJB3 - web service client problem
dejanmr Apr 7, 2009 6:00 AM (in response to hauch)Is this assumption correct (ie. that service-ref in ejb-jar.xml is ignored using ejb3)?
No.If not: Has anybody succeded in getting the service object from jndi using ejb3 and <service-ref>? Please provide an example
The only way I have made it work is by specifying the name:
@WebServiceRef (name="service/myServiceName")
in Service bean class, and then referencing it from the ejb-jar.xml
<service-ref-name>service/myServiceName</service-ref-name>
within <service-ref> tag.
NOTE: Override does not work. It only work if no WSDL address is specified in @WebServiceRef