Wondering if anyone has a suggestion. I am using IntelliJ.
I need to pass a startup parameter to the application and ideal place would be in Run/Debug Configuration of IntelliJ. The idea is to be able to define which database connection (JPA persistence unit) to use for the given devmode instance. Switching persistence unit name in the properties file is a pain since IntelliJ likes to shove the properties files somewhere in its cache buried deep.
I'd like to be able to specify a param in VM options and retrieve it in the ServletContextListener implemented class - where I define and retrieve all other server properties.
I could than define multiple Debug configs and start the one I need already preconfigured with a specific persistence unit.
Thanks.
I need to pass a startup parameter to the application and ideal place would be in Run/Debug Configuration of IntelliJ. The idea is to be able to define which database connection (JPA persistence unit) to use for the given devmode instance. Switching persistence unit name in the properties file is a pain since IntelliJ likes to shove the properties files somewhere in its cache buried deep.
I'd like to be able to specify a param in VM options and retrieve it in the ServletContextListener implemented class - where I define and retrieve all other server properties.
I could than define multiple Debug configs and start the one I need already preconfigured with a specific persistence unit.
Thanks.