December 2002
Intermediate to advanced
1050 pages
24h 49m
English
The MoviesFacadeBean class contains a set of business methods for the movies application. Since it is a session bean, it must implement the SessionBean interface. Because of the internal operation of the helper class for the session bean, we need to declare it to be a stateful session bean in the deployment descriptor.
The methods in any class implemented as an EJB can perform a wide range of operations, but for maximum portability, they should not access local resources (disk files, open network connections), should not use threads, and should have serializable arguments if they are going to be exposed to client code by defining the signature in the remote interface. The code for the MoviesFacadeBean ...
Read now
Unlock full access