While, with Glassfish 3, I had no problem using lazy loading on no-transaction EJB methods, I can't figure out how to make it work with JBoss AS 6.
开发者_StackOverflow社区As a workaround, I can end my methods with entityManager.clear() , but it's not really sexy...
Does anyone know how to make hibernate lazy loading work with JBoss AS 6, on EJB methods annotated with @TransactionAttribute(TransactionAttributeType.NEVER) ?
精彩评论