posted 14 years ago
Hi,
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 ?
Thanks for your help...