Two Laptop Bag*
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 Spring in Action this week in the Spring 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...


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Suggestion for design change...