I need to enter into the source code of JBoss and modify it so that an external program can receive all the exchanged information in the communication layer (or middleware) between EJBs. For example, I need that my program traces all the EJBs and the java methods that are used to satisfy an individual web client request (e.g. a Search) in a particular web application (e.g. Java Pet Store).
What documentation do you recommend me to start reading and/or what particular source code segment should I need to check first?