Do not use BEA Java Web Services (JWS) files

Apache Beehive does not use the BEA Beehive Java™ Web Services (.jws) files. Support for Web Service components in Apache Beehive is provided by an implementation of JSR-181, so these components must be migrated to the JAX-WS programming model.

To migrate the .jws files, move the files to the Java source path in your project and change the file extension to .java. You can use the Eclipse refactoring options to move and rename the files.

The following example shows the definitions of a BEA Beehive web service component.


public class MyWebService implements com.bea.jws.WebService

can be migrated to:


@Stateless
@WebService (
name = "MyWebServiceSoap",
targetNamespace = targetNamespace,
serviceName = "MyWebService",
portName = "MyWebServiceSoap",
wsdlLocation="WEB-INF/wsdl/MyWebService.wsdl")
public class MyWebService

where targetNamespace is the value for targetNamespace in the WSDL pointed to by wsdlLocation.

BEA Beehive web methods are exposed using the @common:operation annotation. You must add the @WebMethod annotation to each exposed method, keeping the exposed operations exactly the same. Use the @WebParam annotation to map the parameter with the XML element in the WSDL.

See Do not use BEA Beehive @common annotations for more information on the @common:operation annotation.