Skip to content

Commit

Permalink
Restore the system property GlassFish_Platform configuration
Browse files Browse the repository at this point in the history
This avoids the threading policy from being set to USE_NO_THREADS in AppServerStartup#postConstruct()

Signed-off-by: Takahiro Nagao <[email protected]>
  • Loading branch information
tnagao7 committed Nov 18, 2024
1 parent c354344 commit a94c884
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,13 @@ public static void main(final String[] args) {
checkJdkVersion();

final Properties argsAsProps = argsToMap(args);
final OsgiPlatform platform = OsgiPlatform.valueOf(whichPlatform());
final String platformName = whichPlatform();
final OsgiPlatform platform = OsgiPlatform.valueOf(platformName);
STDOUT.println("Launching GlassFish on " + platform + " platform");

// Set the system property to allow downstream code to know the platform on which GlassFish runs.
System.setProperty(PLATFORM_PROPERTY_KEY, platformName);

final Path instanceRoot = findInstanceRoot(installRoot, argsAsProps);
final ServerFiles files = new ServerFiles(installRoot.toPath(), instanceRoot);
final StartupContextCfg startupContextCfg = createStartupContextCfg(platform, files, args);
Expand Down

0 comments on commit a94c884

Please sign in to comment.