O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Session Beans: The MoviesFacadeBean Class

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required