2 Replies Latest reply on Feb 6, 2008 6:21 PM by shane.bryzak

    Prayed for the J2EE users lately?

    nickarls

      According to Gavin in the Javadoc of org.jboss.seam.intercept.InvocationContext we should:

      "A copy of the EE5 standard InvocationContext API. We do this because some poor souls are still using J2EE. Pray for them."

      ;-)

        • 1. Re: Prayed for the J2EE users lately?
          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

            Invocation.proceed() will return the method's return value.