-
Notifications
You must be signed in to change notification settings - Fork 40
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
Externalize configurations Example #181
Comments
@hendratommy , is it something that you are already achieving with WildFly (without using bootable JAR)? It would be interesting to see how you are doing it. If that is based on custom JBoss modules (as we can see there: https://www.java2novice.com/jboss/external-property-in-classpath/), that is something that you could mimic with bootable JAR by defining different maven profiles and using the capability to copy extra content inside a bootable JAR. Perhaps a simpler solution would be to have each maven profile to contain resources configured differently. So, for example, a different persistence.xml file per profile. |
That seems interesting, please keep us posted with your result. We could then create a new example to cover your use-case. Thank-you. |
Hi, It's working, I made small POC using bootable JAR to configure However it is not what I'm expecting when working |
@hendratommy , thank-you, could you point me to the workflow/approach you would have preferred? Thank-you. |
I think |
@hendratommy , thank-you. I added your use-case to the JIRA that tracks support for yaml config: https://issues.redhat.com/browse/WFLY-13978 |
Currently I do this with maven profiles and then resource filtering Maven Profile
Persistence.xml
|
@codylerum @hendratommy , FYI, using WF23 you can excute CLI script to adjust your configuration at runtime. |
How to externalize configurations? Like for example, in persistence.xml, I need to set the jndi data source name and hibernate.hbm2ddl.auto differently in my local, staging and prod.
The text was updated successfully, but these errors were encountered: