[jboss-user] [EJB 3.0] - Re: EJB3 - web service client problem

dejanmr do-not-reply at jboss.com
Tue Apr 7 06:00:29 EDT 2009


anonymous wrote : Is this assumption correct (ie. that service-ref in ejb-jar.xml is ignored using ejb3)? 

No.

anonymous wrote : 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


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223969#4223969

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223969



More information about the jboss-user mailing list