• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Suggestion for design change...

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic