Hi Experts,
i have the following problem. We have an Enterprise Application with an EJB 3 Package containing stateless session beans for database access and a web application (WAR), based on spring/spring webflow that obtain the stateless bean via JNDI lookup.
The error we are run into is, that when we load entities (eg. "find all projects") with lazy fetched properties (@OneToMany / @ManyToOne) everthing is fine on the EJB-Container (i can see the the list loaded entities in the debugger) but in the web application these references are "null".
I found a workaround by setting the (not needed) lazy properties to "null" before the method call returns (in stateless bean), then the objects will be available in the web application.
Currently i have no clue what happend during the EJB to WAR transition. (I assume that ejb & war are running in the same class loader ... )
Any ideas?
Thanks, Arne