when I use invocation.getMethod().getDeclaringClass(), I can get the declaring Class of the method currently called. This already helps me in most cases to determine which class / entity a method is called upon. Unfortunately this fails when calling methods like remove() which is declared by EJBLocalObject.
Having some issues with entites created / removed in separate transactions, I was hoping to get a good log output indicating which entities are created / removed in which transaction. So far, I managed to track the creation of objects, the deletion is still left unlogged.
Could somebody give me a little help how to find out in an interceptor which entity is being removed?
edit: this is for jboss 4.0.x