Well, i'm trying to creating the Pattern "OpenView Session in View" manually, without Spring Framework.
My ideia is open the EntityManager SESSION in Restore View Phase and closes in Render Response Phase, using a Listener:
<phase-listener>br.com.cardoso.bean.LifeCycleListener</phase-listener>
But if the process came from a CRONTAB and the JSF phases is not triggered i think that this is won't work .
Someone have a good solution to implement OpenSessionInView without Spring ? (I'm using CDI)