[jboss-user] [Javassist] - Re: How to manage instrumentation in application deployed on JBoss?

Marco Battaglia do-not-reply at jboss.com
Wed Sep 19 19:37:18 EDT 2012


Marco Battaglia [https://community.jboss.org/people/Marco.Battaglia] created the discussion

"Re: How to manage instrumentation in application deployed on JBoss?"

To view the discussion, visit: https://community.jboss.org/message/760464#760464

--------------------------------------------------------------
Hi Alessandro,
you have to use a classloader to instrument classes.
 If you use an agent on your jboss process you can control the main classloader and then every class loaded  by jboss.
You can call transform method in preMain method of your agent.

If you want to monitor classes and method and also add actions you can use byteman. It helps you to registering and unregistering rules (instrumentations) dynamically to your classes.

Ciao
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/760464#760464]

Start a new discussion in Javassist at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2062]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120919/ece29600/attachment-0001.html 


More information about the jboss-user mailing list