November 2003
Intermediate to advanced
1488 pages
36h 35m
English
The process of creating a Web Service from a Stateless Session Bean is pretty straightforward. Implement the bean and create its JAR file. Listing 30.7 contains the code for the DoctorInfoBean. Running the EJBGen tool against it will create the EJB support classes and the EJB JAR file.
package com.wls8unleashed.webservices; // This is an EJBGen-annotated class import java.rmi.RemoteException; import java.util.*; import javax.ejb.*; import javax.naming.*; import javax.rmi.PortableRemoteObject; /** * * @ejbgen:session * ejb-name = DoctorInfoEJB * default-transaction = Required * * @ejbgen:jndi-name * remote = com.wls8unleashed.webservices.DoctorInfoHome ... |
Read now
Unlock full access