Enterprise JavaBeans Support

The visit object should provide access to the most commonly used Enterprise JavaBeans used in the application. It can provide a central location for the common code (related to JNDI and to narrowing EJB references), rather than have that scattered throughout the application.

It is important to remember that EJB references are not serializable. However, it is possible to convert between an EJB reference and an EJB handle, and handles are serializable. The visit should make any instance variables that store EJB references transient, and should perform extra serialization work to serialize and restore the necessary EJB handles.

Also remember that persistent page properties that are EJB references are automatically converted to handles when stored, and back into references when restored.