Uploaded image for project: 'WildFly Arquillian'
  1. WildFly Arquillian
  2. WFARQ-86

Add an option to pass server arguments when starting a server

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • False
    • False
    • Undefined

      There is a WildFlyContainerController which adds a stop(String containerId, int timeout) method. We could add a start(String containerId, String... serverArgs) which would append the serverArgs to the ContainerConfiguration. This differs from the start(String containerId, Map<String, String> config) as when that method is used the config overrides the configuration from the arquillian.xml. The advantage to appending the server arguments is a server can be started with different options while not requiring several container definitions in the arquillian.xml file.

      As an example you could do something like:

      controller.start("default", "--server-config=standalone-full.xml");
      // do stuff
      controller.stop("default");
      
      controller.start("default", "--server-config=standalone.xml", "--start-mode=admin-only");
      // do stuff
      controller.stop("default");
      

      These arguments are not persisted to a server and therefore should be safe to be appended during a start. These arguments should always be appended to the server arguments from the ContainerConfiguration.

              Unassigned Unassigned
              jperkins-rhn James Perkins
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: