This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes BEA/Weblogic and the fly likes How to reload an ini file without restarting weblogic 7.0 ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to reload an ini file without restarting weblogic 7.0 ??" Watch "How to reload an ini file without restarting weblogic 7.0 ??" New topic
Author

How to reload an ini file without restarting weblogic 7.0 ??

Balaji Natarajan
Greenhorn

Joined: Dec 05, 2002
Posts: 28
i am using an .ini file to supply the data required for testing. The java Class file will read the .ini file and make appropriate assignments in the EJB client. If I change the data in the .ini file i need to restart the server to make this change reflect during the client assignments. Is there any way to avoid this restarting of the server so that the changes made to the .ini file will get dynamically reflected in the proces..
Thanks in advance
Balaji.
Howard Zhao
Greenhorn

Joined: May 06, 2002
Posts: 27
Hi
1 You can pack the .ini and classes into a .jar or .war file, each time you modified the .ini, you need to pack them again and redeploy the pack.
or
2 Directly moidfy the .ini in your pack and redeploy the pack.
or
(I am not sure whether this will work out, but servlet reload .ini in this way)
3 put you .ini file in your bean (or bean container ) working directoy, redeploy the bean classes.
I think the .ini file only can be read during component initial time, so each time you modify your .ini file, youneed to redeploy the component
Howard
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to reload an ini file without restarting weblogic 7.0 ??