This content has been marked as final. Show 2 replies
Use basic EJB3 entity callback annotations.
Or are they not enough?
No, they are not.
The solution is to use the following arguments:
-javaagent:jboss-aop-jdk50.jar -Djboss.aop.include=com.xyz.abc -Djboss.aop.exclude=org,net,com
if, for example, one is on Java 5.
Using AOP and some annotations you can easily intercept get methods from your Entity Bean and get rid of the LazyInitializationException.