File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to reload an ini file without restarting weblogic 7.0 ??