Web services support in Enterprise JavaBeans (EJB)

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.

New or updated for this feature pack 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.

New or updated for this feature pack 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.




Related concepts
Enterprise beans
New or updated for this feature pack Feature Pack for EJB 3.0
Related tasks
Developing enterprise beans
Related reference
New or updated for this feature pack What is new in the Version 6.1 Feature Pack for EJB 3.0
Best practices for developing enterprise beans
Enterprise beans: Resources for learning
Unknown primary-key class
Reference topic Reference topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 31, 2013 2:56:59 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-dist&topic=rejb_webservice
File name: rejb_webservice.html