This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Modern JavaScript for the Impatient and have Cay Horstmann on-line!
See this thread for details.
Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Need help

 
Ranch Hand
Posts: 431
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers

We are using weblogic 8.1 enterprise server. And we follow struts framework as well. But if I change something in struts-config.xml or tiles-defs.xml it needs a restart of the server. Is there any other way to do this without restart?. Also, we use property files to store text messages. So, when ever we change some value in the property files, that also needs a restart of the server. I know that it is very hard to make the xml changes get reflected in the server without restart. But property files will be loaded on start-up in some memory area. Is there any provision either through console or through code to change the value directly so that without restart it will take the new values from the property files.

Please help me out in this.
 
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm redeploing only the web application to reflect the changes in struts-config.xml .
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your Properties files should be included in your deployed archive file, so you only need to rebuild and redeploy. No need to restart your server.
 
S.L.Narayanan
Ranch Hand
Posts: 431
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are also redeploying only the required web application but it requires some outage in the server. I want to do something so that without restart or redeployment I will be able to change the property files.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could store the data in a DB and read it into a cache. When you change the data, you refresh the cache.
 
S.L.Narayanan
Ranch Hand
Posts: 431
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops..thats not possible...whatever we store in the property files are the text that are displayed in the jsps...it is not advisable to store those text in database...it may change at any time...more over we dont have direct access to the database and it is being maintained at the client side and they are giving away only views to us...any other way to do?
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you do partial deployment of your application.
If yes then you should deploy your application in exploded form.
 
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your server must be running in Development mode and not on production mode.
if you are using the Weblogic Workshop for development then you need to deploy/redeploy your application

at any point of time if you made any changes into your application then you need to redeploy the same application.

Thanks,
Santosh
 
Enjoy the full beauty of the english language. Embedded in this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic