Details
Description
I am using services to implement business logic in my web-flow. Because I do not want to make my domain-classes serializable, these services communicate back to the flow using POGO's.
The problem appears to be that Grails is tying to serialize the domain-class objects used within the services (i.e. - implements Serializable thrown).
I have created a cut-down version of the app (attached) that replicates the problem. Adding a book to the shopping cart will result in the exception.
It seems that the Hibernate session (and therefore all objects residing in its cache) are put into the flow scope.