Draft: Adds lookup in system properties for WAR contextRoot in EAR #24644
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi GlassFish team !
I'm looking up to implement a simple system property lookup in GlassFish so we can externalize
contextRoot
andurlPattern
(and more, such as JNDI names, EJB persistance unit names, ...).This is mainly a prototype to see how this can be implemented since I don't know how it would be the most correct place to put this translation, neither if this is the correct way to do it (for instance, in Payara it only looks for the properties declared in the
domain.xml
). The goal of this PR is to get some input to see in which way this can go.Based on my example, the goal is to have a definition like below, so we can build an EAR where the URLs can be configured outside the application itself (so we could eventually have the EAR/WAR/JAR file signed):
Here are some places that I'd like to see this implemented:
@WebServlet
jta-data-source
inpersistence.xml
Any feedback is welcome :-)