This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a few stand-alone apps that connect to a database. The apps share a lot of common code.
Runtime parameters for these apps are stored in the database. The connection parameters to the database are in a properties file. I also have a central "DBProperties" class that reads these properties from the properties file in order to make the connection.
The common code for the stand-alone app is to be shared by an Axis2 Web Service. That service would access the database through that common code, as well as through the skeleton.
My intent was to Jar the common code, and include that .jar inside the .aar file.
The problem I have is that I don't know where to put the properties file so that the jarred DBProperties class can find it when run inside the web service...
Maybe there's a simpler way make both the stand-alone app and the web service configurable as far as connection parameters ?