• 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
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

How to make changes runtime in ApplicationResources.prop without restarting server

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

We are using Oracle App. server 10g server. Our application is so critical, we can not restart server frequently for small changes. Our client might need to change error message and other user message on regular basis. We use ApplicationResources.properties for messages. How we can update these messages at run time without restarting server.

I tried to copy ApplicationResources.properties in application folder on server, but it does not give effect. Generally, we used to do this with JBoss server, but I am new to Oracle App. server, is it possible? If possible - how?

I also searched for online help and also tutorial but no success so far. Your any input will be useful.

One probable solution is to access these messages from database, but do we have any other option if we want to use ApplicationResources.properties ?

thanks in advance.
 
author & internet detective
Posts: 40678
827
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kapil,
The easiest way is not to cache the properties in memory or to cache them for a limited time (and timeout after X seconds.) That way the file will be read in periodically from disk. Note there are some performance tradeoffs here.
 
kapil patel
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

That is good idea. Is there any other better option ?

Moreover, where to set this property in Oracle App Server?

Thanks,
 
Jeanne Boyarsky
author & internet detective
Posts: 40678
827
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I haven't used OAS. I'm going to move this to our Oracle forum where someone is more likely to know the answer.
 
reply
    Bookmark Topic Watch Topic
  • New Topic