Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-76

be able to get and set system property configuration settings

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.2.1
    • None
    • None
    • None

    Description

      Byteman supports several configuration settings via System Properties. It would be nice to allow a user to get (and set) those configuration settings at runtime.

      This means we need to:

      a) have the transport listener accept LISTSYSPROPS and SETSYSPROPS so a client can ask for the configuration sys props and to be able to set them
      b) have the Submit API be able to provide methods to get the config props and to set them
      c) have the Submit cmd line utility accept a "-y" option to list sys props and (give name/value pairs) to set them.

      All byteman config props start with "org.jboss.byteman.". To provide a bit of security, LISTSYSPROPS and SETSYSPROPS will by default support "strict mode" meaning they will be restricted to listing and setting only those properties that start with org.jboss.byteman. However, if you wish to loosen that restriction and allow a client to set any system property in the VM (which may be useful for testing and/or controlling your rules behavior), you can turn off strict mode by passing in -Dorg.jboss.byteman.sysprops.strict=false" on the command line of your VM that hosts the byteman agent. It is illegal to turn off strict mode remotely via the -y/Submit API, but it is possible to turn on strict mode remotely (you can make it more strict, you can't make it less strict).

      Attachments

        Issue Links

          Activity

            People

              jmazzitelli John Mazzitelli
              jmazzitelli John Mazzitelli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: