- 
        1. Re: FetchType.LAZYejb3workshop Jan 13, 2006 7:35 AM (in response to danjourno)Are you calling commission.getSupplier(); on the client side or within the session bean ? 
 If you are calling it on the client side you will get a LazyException as you are trying to access an object outside of it's persistent context. In this case to fix the problem you will need to either:
 1.) fetch the associated objects within the session bean and return both to the client
 2.) Set the type to EAGER if the two objects are closely related. (Composition Relationship ???)
 I hope this helps. If you have further input please send it.
 Alex
 ejb3workshop.com
 Video Podcasts on EJB3
- 
        2. Re: FetchType.LAZYcyril.joui Jan 15, 2006 6:23 PM (in response to danjourno)For more informations you can look at : 
 http://jboss.com/index.html?module=bb&op=viewtopic&t=75525
 Good luck
- 
        3. Re: FetchType.LAZYpvanonselen Jan 16, 2006 5:25 AM (in response to danjourno)Check persistence.xml under JBOSS_HOME/server/all/ejb3.deployer/META-INF. 
 When release_mode is on after_transaction it closes the session after each JDBC statement.
 Resolve problem by uising on_close or just comment the line containing the following linehibernate.connection.release_mode=after_statement 
 See Chapter 4 of Hibernate 3 reference guide 4.Configuration for more details
- 
        4. Re: FetchType.LAZYcyril.joui Jan 16, 2006 5:57 AM (in response to danjourno)Hello, 
 I think, you can overload it in your persistence.xml of your .par file
 
     
     
    