[jboss-user] [EJB 3.0] - Re: Problem with lazy initialization - no session or session

2006-09-05 Thread killme2008
"killme2008" wrote : you have to try "Extended Persistence Contexts and Application Transactions",read the tutorial of jboss-ejb3-doc ,just like: | | @PersistenceContext(type=PersistenceContextType.EXTENDED) EntityManager em; | | | by dennis View the original post : http://www.jboss

[jboss-user] [EJB 3.0] - Re: Problem with lazy initialization - no session or session

2006-09-05 Thread killme2008
you have to try "Extended Persistence Contexts and Application Transactions",see the tutorial of jboss-ejb3-doc ,just like: @PersistenceContext(type=PersistenceContextType.EXTENDED) EntityManager em; by dennis View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3

[jboss-user] [EJB 3.0] - Re: Problem with lazy initialization - no session or session

2006-09-04 Thread A_titov82
I get this exception when I try to request collection of related entities (using EJB3 relations). When I try to access from local client (session bean) everything is ok. But when I try to access from remote client I get the exception... Exception in thread "main" org.hibernate.LazyInitializati

[jboss-user] [EJB 3.0] - Re: Problem with lazy initialization - no session or session

2006-08-29 Thread scraatz
Are you accessing your lazy collections within a single Transaction? If not, that could be your problem... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968057#3968057 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=396