[JBoss Web Services] - Configuring @WebServiceRef on EJB via XML in AS7

Xavier Dury <[email protected]>
Newsgroups gmane.comp.java.jboss.user
Message-ID <[email protected]>
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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.