Hi all,

The scenario is : jboss 4.2.2, EJB3 entity that describes the model, EJB session deployed as web service.

The problem is that when a client invokes a method of the web service that returns an entity (that references a collection) receave a LazyinitializingException.

This is due to the marshalling operation that is executed after jpa session closing.

To solve this I would implement long session pattern with a "web service transaction".

I can I implement it?

 

Thanks in advance

Devone