I am trying to implement the reloading of resouce bundle(property files) in our web application(JSF2 开发者_如何学Go,JDK1.6) .
To achieve that trying to override the ResourceBundle.Control Override the getTimeToLive Method
,but it is not working.
May i know should i need to register my overriden class in web.xml or server.xml ?
I appreciate any help/
Thanks Vijay
Neither. It needs to be registered in faces-config.xml
as <resource-bundle>
which points to a fullworthy java.util.ResourceBundle
implementation which in turn uses a custom Control
. You can find a real world use example in this article which utilizes it to read the bundle files as UTF-8 without the need to hassle with native2ascii
stuff.
Note that this is not going to solve the particular problem as described in your previous question.
精彩评论