I would suggest following the precedent set in the Database Connector module and pass the JDBC connection string as a parameter to any Java Actions you are writing to integrate with the new .jar file.
https://docs.mendix.com/appstore/connectors/database-connector/
Hope this helps.