This content has been marked as final.
Show 2 replies
-
1. Re: Prayed for the J2EE users lately?
nickarls Feb 6, 2008 5:55 PM (in response to nickarls)Actually, the reason I was browsing the javadocs is that I'm writing a logger/exception interceptor and was looking for a way to find out what the method returned but didn't find anyhing obvious in InvocationContext etc.
I got the idea that Seams concept of AroundInvoke is pretty much equivalent with JEE 5:s but didn't find any enlightenment there either.
How *do* you find out what the method returned? I'd like to get log entries in the line of "getUsers() called with parameters 'foo' returned 4 hits" and then do some handling on the PersistenceException hierarchy
What? The subject doesn't match the question? -
2. Re: Prayed for the J2EE users lately?
shane.bryzak Feb 6, 2008 6:21 PM (in response to nickarls)Invocation.proceed() will return the method's return value.