It sounds like you'd be better off writing a mutable resource bundle
factory, or just turning off auto-reload for the web app, rather than
jumping through these hoops with temp files.
That said, the solution you describe should work fine provided that (a)
you really are creating the temp file, (b) you really are moving it over
the top of the 'real' file and (c) you're doing so at a point in the
lifecycle before the file is loaded. Remember, renaming the temp file
over the 'real' file will have no effect if you do it after the file is
loaded.
l.
Shailesh Barde wrote:
Hi,
Even after reloading the application the renamed temporary file (Which is
Original Messege resource Bundle Now)is not getting used.Hence the required
changes are not Visisble.
Regards,
Shailesh
On Wed, 07 Dec 2005 Aman A wrote :
Hi Shailesh,
If I were you, I would have reloaded the component which loads the
application resources file in struts.
Try for it. If you want, I can help in this direction,
I am getting only this in my mind now.
Lets see how other users reply.
Regards
A
On 7 Dec 2005 06:17:46 -0000, Shailesh Barde <[EMAIL PROTECTED]>
wrote:
Hello Friends,
I want to make application in which i have to make changes at Runtime in
Resource Bundle.This is possible by Reading & Writing the .properties file
using java.io.* API.However everytime you make change in it,the Context
get Reloaded.Hence i have made all my changes in Temporary file(Which
shows the changes on the JSP which displayes this file by reading it).
Now i am trying to load these changes by Renaming this temporary file as
a Original Resource Bundle file & deleting the Original RB file.This is
Done in User Defined Actionservlet's init()(by Overriding 1nit().The
Actionservlet is written by extending ActionServlet).
However the changes are not seen in the application(as the Messages for
a Particular key is the older one & not as per changes made by me).
How can i see all my changes at once?
Kindly Guide me.
Regards,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]