Категории
Архив
Инсталляция
A stateless session bean typically implements a procedural service on top of a database or legacy application.
Exposing Existing Stateless Session
The JAX-RPC service endpoint interface needs to follow the rules for service endpoint interfaces described in the preceding section. This means that the interface can include only those business methods of the stateless session bean's remote interface that follow the JAX-RPC rules for allowed types. If the application's existing beans do not follow the JAX-RPC rules, one way to enable the application for Web services is to develop "wrapper" beans that do follow the rules.
Using a JAX-RPC-compliant tool, the new service endpoint interface is used to generate the WSDL document for the Web service. Clients can then use this WSDL document to access the Web service. In addition, the deployment descriptor of the existing bean needs to be enhanced to declare the new service endpoint interface. After the service endpoint interface for the existing stateless session bean has been created, the interface should be packaged into the bean's JAR file, along with the bean's home, remote, and implementation classes; the EJB deployment descriptor; and the Web services deployment descriptor, as described in the preceding section.
Hello from Califronia! Bye.
12.10.2008 22:40 от Вася Пупкин
The container removes a session object when the client invokes the remove method or when the bean's timeout limit is reached.