开发者

Lazy loading with JBoss AS 6 and TransactionAttribute.NEVER?

开发者 https://www.devze.com 2023-03-19 09:48 出处:网络
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.

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) ?

0

精彩评论

暂无评论...
验证码 换一张
取 消