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

support custom port to start listener

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 1.2.0
    • 1.1.1
    • None
    • None

      the Submit class takes a -p port argument.

      However, there is no way to change the port of the server-side listener.

      Add the ability to indicate a port other than the default port of 9091. From TransportListener.java:

      ...
      public static int DEFAULT_PORT = 9091;
      ...
      theServerSocket = new ServerSocket();
      theServerSocket.bind(new InetSocketAddress("localhost", DEFAULT_PORT));
      if (Transformer.isVerbose())

      { System.out.println("TransformListener() : accepting requests on port " + DEFAULT_PORT); }

      A minimal solution would be to use a system property:

      port = Integer.parseInt(System.getProperty("org.jboss.byteman.listener-port", "" + DEFAULT_PORT))

            rhn-engineering-adinn Andrew Dinn
            jmazzitelli John Mazzitelli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: