WebSphere Application Server Version 6.0 and later complies with the Java 2 platform, Enterprise Edition (J2EE) and Enterprise JavaBeans (EJB) specifications by enabling you to expose an EJB stateless session bean as a Web service.
The Feature Pack for Web
Services introduces support for the Java API for XML Web Services (JAX-WS)
2.0 programming model and the Feature Pack for EJB 3.0 release introduces
support for the EJB 3.0 specification.
The Feature Pack for Web
Services can coexist with the Feature Pack for EJB 3.0, but these two feature
packs do not provide cross-feature pack integration. The Feature Pack for
EJB 3.0 does not support the @WebService or @WebMethod annotations on EJB
3.0 stateless session beans, which are used to identify the stateless session
bean as a Java API for XML Web Services (JAX-WS) implementation, nor does
it support injection of Web services references. You can invoke EJB 3.0 beans
indirectly by defining a servlet as the JAX-WS implementation and placing
code in the servlet which invokes the target EJB 3.0 bean.
You can do this by simply declaring a link between the desired Endpoint name in the Web service deployment descriptor of the EJB module. During deployment and installation of the bean into the Application Server environment, the bean is linked to the specified Web service endpoint.
If you are writing a stateless session bean to implement a preexisting Web Services Description Language (WSDL) interface, you must remember to implement in your bean all of the methods defined on the WSDL interface.
For more information, see Developing Web services applications from enterprise beans.