Java Reference
In-Depth Information
Exposing Existing EJBs as Web Services
The second way we can expose EJBs as web services is to expose an existing EJB as a
web service. In order to do this, we need to create a web service as usual by going to
File | New | Web Service
, then entering a name and a package for our web service
and select the
Create Web Service from Existing Session Bean
radio button. Then
we need to select the session bean to expose as a web service by clicking on the
Browse...
button and selecting the appropriate bean.