Java Reference
In-Depth Information
Clicking on the Source tab reveals the newly generated methods, along with all the
appropriate annotations.
Once we deploy our project, our web service can be accessed by clients just like
any other web service. It makes no difference to the client that our web service
was implemented as a session bean.
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 , entering a name and a package for our web service, and
selecting 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.
Search WWH ::

Custom Search