[jboss-user] [JBoss Web Services] - Configuring @WebServiceRef on EJB via XML in AS7
Xavier Dury
do-not-reply at jboss.com
Fri Jul 19 04:16:55 EDT 2013
Xavier Dury [https://community.jboss.org/people/xdury] created the discussion
"Configuring @WebServiceRef on EJB via XML in AS7"
To view the discussion, visit: https://community.jboss.org/message/828798#828798
--------------------------------------------------------------
Hi,
I have some EJBs that call WebServices. In JBoss AS5, I had something like that:
@Stateless
public class MyServiceBean implements MyService {
@WebServiceRef(name = "services/MyWebService")
MyWebPort myWebService;
...
}
jboss.xml:
<session>
<ejb-name>MyServiceBean</ejb-name>
<service-ref>
<service-ref-name>services/MyWebService</service-ref-name>
<service-impl-class>eg.MyWebService</service-impl-class>
<port-component-ref>
<service-endpoint-interface>eg.MyWebPort</service-endpoint-interface>
<stub-property>
<prop-name>javax.xml.ws.service.endpoint.address</prop-name>
<prop-value>http://some.url.here</prop-value>
</stub-property>
</port-component-ref>
</service-ref>
</session>
Now that I've migrated to JBoss AS7, jboss-ejb3.xml is used instead of jboss.xml. But it seems I can't use custom jboss elements in it.
So how do I achieve this in AS7?
Thanks,
Xavier
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/828798#828798]
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/20130719/9e7ee41a/attachment.html
More information about the jboss-user
mailing list