2 Replies Latest reply on Feb 7, 2018 5:03 AM by Ondra Chaloupka

    Accessible method for injecting Byteman agent to current JVM

    Ondra Chaloupka Expert

      Hi adinn,

       

      as I was playing with dtest library a bit I was thinking it could be beneficial to have some java utility method somewhere in Byteman that give me chance to install Byteman agent to the currently running JVM. It's for purpose of writing tests with use of dtest, I mean.

      This is done already in `bmunit` (byteman/BMUnitConfigState.java at master · bytemanproject/byteman · GitHub ) but it's internal to it only. Do you think having that visible in general would be feasible? Or if, that should be made responsibility of the contrib module itself and you think e.g. kind of duplication the code to internals of dtest would be better?

       

      Thanks

      Ondra