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

ARTEMIS-4244 Set web config using system properties #4440

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

brusdev
Copy link
Member

@brusdev brusdev commented Apr 19, 2023

It is possible to use system properties to add or update web configuration items.
If you define a system property starting with "webconfig." it will be parsed at the startup
to update the web configuration.

To enable the client authentication for an existing binding with the name artemis,
set the system property webconfig.bindings.artemis.clientAuth to true, i.e.

java -Dwebconfig.bindings.artemis.clientAuth=true

To add a new binding or app set the new binding or app attributes using their new names, i.e.

java -Dwebconfig.bindings.my-binding.uri=http://localhost:8162
java -Dwebconfig.bindings.my-binding.apps.my-app.uri=my-app
java -Dwebconfig.bindings.my-binding.apps.my-app.war=my-app.war

To update a binding without a name use its uri and to update an app without a name use its url , i.e.

<web path="web">
  <binding uri="http://localhost:8161">
    <app url="activemq-branding" war="activemq-branding.war"/>
...
java -Dwebconfig.bindings."http://localhost:8161".clientAuth=true
java -Dwebconfig.bindings."http://localhost:8161".apps."activemq-branding".war=my-branding.war

@brusdev brusdev requested a review from gtully April 19, 2023 15:02
@brusdev brusdev marked this pull request as draft April 19, 2023 17:48
@brusdev brusdev force-pushed the ARTEMIS-4244 branch 3 times, most recently from 558c5fc to b1ae3b9 Compare April 20, 2023 05:30
@brusdev brusdev marked this pull request as ready for review April 20, 2023 08:03
@brusdev
Copy link
Member Author

brusdev commented Apr 24, 2023

I added the support for binding and apps without names and a section in the Embedded Web Server doc.

@brusdev brusdev force-pushed the ARTEMIS-4244 branch 2 times, most recently from 90ea99a to 65696d1 Compare April 24, 2023 10:14
@jbertram jbertram merged commit cc9db6b into apache:main Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants