wood burning stoves 2.0*
The moose likes Web Services and the fly likes Suggestion for design change... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Suggestion for design change..." Watch "Suggestion for design change..." New topic
Author

Suggestion for design change...

Jack Bercy
Greenhorn

Joined: Jul 31, 2004
Posts: 11
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...


 
Don't get me started about those stupid light bulbs.
 
subject: Suggestion for design change...
 
Similar Threads
Deploying Jar inside WebSphere5
java.lang.NoClassDefFoundError Using eclipse
Suggestions for Web as well as stand alone Spring application in one project
Reading properties file
NX: URLy Bird 1.3.1 Suncertify.properties