[jboss-user] [JBoss AOP] - Re: JBOSS AOP and Exception Handling

kabir.khan@jboss.com do-not-reply at jboss.com
Tue Aug 12 15:38:41 EDT 2008


I modified your post to use the [ code ] [ /code] tags (there should be no spaces inside the square bracets).

Unfortunately, what you are doing is not really possible. A lot of exceptions are thrown by the JVM or the JDK classes, none of which we are allowed to weave. You can however capture this if thrown by any of your application classes.

A hack for you would be to for example use javassist to modify the java.lang.Exception class constructor, and to use the Xbootclasspath/p: option when starting the JVM to make sure that it uses your copy, and you could do something in there to track exceptions. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170160#4170160

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170160



More information about the jboss-user mailing list