• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

GWT project and properties files

Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,

I am in the middle of a GWT project that i need to use some property files for the database information i use there. For this purpose i use the apache Commons Configuration kit, but my problem is that since this properties are needed in various classes in my project i am trying to find a way to use them in a loose coupling way and not include the configuration code in every class.

Any ideas?

Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know much about GWT but I can speak a little about properties objects in a web app.

If the properties files are read at startup, using a context listener and then bound to context scope, it should be pretty easy for your servlet code to pass a reference to any classes that need them. Do you have a more specific example that you can talk about?
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
Enterprise-grade Excel API for Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!