Exposing the EJB as a Web Service
Context
To expose the implementation bean, you can use service endpoint interface (SEI). More information: Service Endpoint Interface .
In this tutorial, you use the remote interface of the EJB as an SEI.
Procedure
Results
The HelloWorld EJB is exposed as a Web service.
The code sample below shows the update of the SEI:
package com.sap.tutorial.helloworld; import javax.ejb.Remote; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.WebParam; @WebService(name="HelloBeanRemote", targetNamespace="http://sap.com/tutorial/helloworld/") @Remote public interface HelloBeanRemote { @WebMethod(operationName="sayHello") public String sayHello (@WebParam(name="name") String name); }
Next Steps
Next step : Implementing Logs in the HelloWorld Application

