This content has been marked as final.
Show 2 replies
-
1. Re: How to intercept Entity Beans in EJB3.0 using the Embedd
alesj Jun 30, 2006 5:04 PM (in response to adrian.andrei)Use basic EJB3 entity callback annotations.
Or are they not enough? -
2. Re: How to intercept Entity Beans in EJB3.0 using the Embedd
adrian.andrei Jul 4, 2006 12:43 PM (in response to adrian.andrei)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.
/aa