Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically increment busy payara micro http and https ports #359

Conversation

Pandrex247
Copy link
Member

Adds auto bind functionality to the --port and --sslPort options.

Similar to how Hazelcast works, if the HTTP or HTTPS port is busy and auto bind is enabled, it will now try to find an empty port on the next x ports.

throw new NumberFormatException("Not a valid auto bind range");
}
} catch (NumberFormatException nfe) {
System.err.println(autoBindRangeString
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you throw an IllegalArgument Exception like the other parameters so we can fial-fast

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you mean? I designed it so that it doesn't fail if the input for --autoBindRange is incorrect. If it's incorrect, it just reverts back to its default of 5.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The others "fail fast" if the setting is incorrect to prevent confusion by throwing an IllegalArgumentException

@Pandrex247 Pandrex247 force-pushed the PAYARA-144-Autoincrement-busy-Payara-Micro-Http-Port branch from 65e3ec0 to 3adb743 Compare June 30, 2015 08:17
@Pandrex247
Copy link
Member Author

Removed the fallback to default, and rebased against master again.

@Pandrex247
Copy link
Member Author

payara test please

1 similar comment
@Pandrex247
Copy link
Member Author

payara test please

smillidge added a commit that referenced this pull request Jul 1, 2015
…-Payara-Micro-Http-Port

Automatically increment busy payara micro http and https ports
@smillidge smillidge merged commit 98b4303 into payara:master Jul 1, 2015
@Pandrex247 Pandrex247 deleted the PAYARA-144-Autoincrement-busy-Payara-Micro-Http-Port branch November 17, 2016 09:17
Pandrex247 pushed a commit to Pandrex247/Payara that referenced this pull request May 4, 2021
FISH-1286: Update JDK 11 packages for OSGI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants