I have a requirement to call a remote
ejb y in a different ear through ejb x in another ear using webservices on weblogic.
I have some of the steps for using ejb y as a remote service
create the stateless bean y remote interface, bean, home
For exposing the bean y as Web service endpoint interface
Do I need an entry <service-endpoint></service-endpoint> in ejb-jar.xml.
Use weblogic servicegen
ant task to generate web-services.xml and put it in ear file specify ejb jar serviceName serviceURI targetNamespace
The webservices.xml looks like
<weblogic-webservices xmlns="http://www.bea.com/ns/weblogic/90">
<webservice-description>
<webservice-description-name>yService</webservice-description-name>
<port-component>
<port-component-name>yServicePort</port-component-name>
<service-endpoint-address>
<webservice-contextpath>/yService</webservice-contextpath>
<webservice-serviceuri>/yService</webservice-serviceuri>
</service-endpoint-address>
</port-component>
</webservice-description>
</weblogic-webservices>
My question is that from x bean can I use JAX-RPC to access y bean and if yes can I have some code sample.