Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Need suggestion to load resource properties file dynamically

Prithivirajan Dhamodharan

2007-03-02

Replies:

Thanks Laurie,

Some code eg., or templates would be really helpful..


On 3/2/07, robin bajaj <robinbajaj@(protected):
>
> Hi there,
> I am looking for similar results (*dynamically load properties file
> without restarting the server))
>
> >You'll need to implement your own MessageResourcesFactory and configure
> > it in struts-config.xml. Your custom factory and/or the resource
> >bundles
> > it creates can use whatever logic you want for (re)loading the >property
> > files.
>
> can you please provide some code templates or some pointers about how to
>  implement what you suggested ?
>
> thanks,
> robin
>
>
> Laurie Harper wrote:
> > Prithivirajan Dhamodharan wrote:
> >> Help required to load values in properties file(MessageResources)
> without
> >> restarting/reloading the server.
> >>
> >> Kindly give your suggestions.
> >
> > You'll need to implement your own MessageResourcesFactory and configure
> > it in struts-config.xml. Your custom factory and/or the resource bundles
> > it creates can use whatever logic you want for (re)loading the property
> > files.
> >
> > L.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
©2008 junlu.com - Jax Systems, LLC, U.S.A.