Skip to content

Make remote registry port and framework name configurable via system properties #1128

@oliverlietz

Description

@oliverlietz

The fixed port range for the RMI Registry caused issues in the past:

The ForkedFrameworkFactory should accept and use optional values for both properties (pax.swissbox.framework.rmi.port and pax.swissbox.framework.rmi.name):

    @Configuration
    public Option[] configuration() {
        final String port = Integer.toString(findFreePort());
        final String name = "pax-exam-remote-framework";
        return options(
            systemProperty(RemoteFramework.RMI_PORT_KEY).value(port),
            systemProperty(RemoteFramework.RMI_NAME_KEY).value(name),
            [...]
        );
    }

ForkedFrameworkFactory accepts a single port for flexibility and simplicity. Implementation of port range is up to the consumers.

Metadata

Metadata

Assignees

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions