Dear community,
I am relatively new to pure Java EE (having always worked with Embedded Jetty Uber Jar approach before), and I have a question:
I am packaging my application using the outputUberJar command.
This application will be deployed to a cloud (AWS EBS) and will have the database settings (url, username, password) as Environment Variables available at runtime.
How can I use these environment variables to configure a data source for my PersistenceUnit?
Also: would it be better to use the programmatic API instead of an uber jar in this scenario?
Thank you very much for your reply and guidance.
With kind regards,
Guilherme