06 diciembre 2009

Stateful session beans

Application state that does not belong in the database should usually be held by stateful session beans. Instead of sticking information about the current
conversation directly in the HttpSession, you should keep it in instance variables of a stateful session bean that is bound to the conversation context.

Stateful session beans are often used as JSF action listener, and as backing beans that provide properties to JSF components for display or form submission.

Seam stateful session bean components may be instantiated using Component.getInstance()
or @In(create=true)
. They should not be directly instantiated via JNDI lookup or the new operator.

No hay comentarios: