Java Reference
In-Depth Information
EJB3 Stateless Session Beans (SLSB) web services
The JAX-WS programming model supports the same set of annotations on EJB3
Stateless Session Beans as on POJO endpoints. Now that we already have some
web service muscle, we will engineer one of the examples introduced in this topic.
Our main web service class will be named TicketSOAPService and will use some
of the core classes that we described in Chapter 3 , Beginning Java EE 6 - EJBs ,
such as TheatreBox that will keep in memory the ticket bookings and the Seat
class as the model. The business methods of our web service will be described by a
Service Endpoint Interface ( SEI ) named TicketSOAPServiceItf .
Note
Writing the service interface is always good practice as it gives a proper client-
side view of our Service methods. The implementation class can then implement
the methods defined in the interface.
package
com.packtpub.as7development.chapter8.webservice;
import java.util.List;
import javax.jws.WebService;
import
com.packtpub.as7development.chapter8.model.Seat;
@WebService
Search WWH ::




Custom Search