This tutorial covers creating an EJB 3.1 singleton session bean and exposing the singleton session bean as a JAX-WS web service and consuming the web service using different types of web service clients.
In this tutorial, you will create a Java EE 6 Web Application and add the following components to it - a singleton session bean, CounterBean
and implement a getHits()
method in it. The singleton session bean provides a central counter service. Next you will expose the singleton session bean as a JAX-WS web service called CounterService
. You will deploy the web service to GlassFish server and test the web service You will develop two clients to consume this web service - a Java class in a Java SE application and a jsp page in a web application.
Release Date: 18-Dec-12
Duration: 45 minutes
Credited To: Anjana Shenoy
No Flash Plugin Needed