No they won't but like anything else it's your job to keep track of your change with a database or writing file.
In my point of view accessors are the best thing to change a value withing asking the value in the database. But you can store the new value in view of keeping the same configuration when you restart the server after a release ... or a crash :p Regards, Cedric ----- Original Message ----- From: "Ovidiu EFTIMIE" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Tuesday, January 25, 2005 3:58 PM Subject: Re: Reloading plugin But what happens if the server dies ? I will lose the configuration ? Will the accessors modify my struts-config.xml ? I don't think they will . Ovidiu On Tue, 25 Jan 2005 15:54:44 +0100, Cedric Levieux <[EMAIL PROTECTED]> wrote: > why in database ? > > public class XxxPlugIn implements PlugIn > { > private static Log log = LogFactory.getLog(ForumPlugIn.class); > private static XxxPlugIn INSTANCE = null; > > // Other plugin properties > > public static XxxPlugIn getInstance() > { > return INSTANCE; > } > > public void init(ActionServlet actionServlet, ModuleConfig moduleConfig) > throws ServletException > { > // bla bla bla > INSTANCE = this; > } > } > > by this way you can get your plugin from everywhere and can change the > configuration by accessors. > > Cedric > > ----- Original Message ----- > From: "Ovidiu EFTIMIE" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <user@struts.apache.org> > Sent: Tuesday, January 25, 2005 3:49 PM > Subject: Re: Reloading plugin > > > This could be a solution if I stored the plugin configurations in the > database. > > Thanx. > > On Tue, 25 Jan 2005 15:45:45 +0100, Cédric Levieux > <[EMAIL PROTECTED]> wrote: > > What about, like I said, a Web Administration Page for your plugin and > > change the plugins configuration with that ? > > > > Cedric > > > > On Tue, 25 Jan 2005 16:42:14 +0200, Ovidiu EFTIMIE <[EMAIL PROTECTED]> > wrote: > > > The thing is that the application must be running without any > > > interupption. I was thinking about a plugin that watches over the > > > other ones inspecting the struts-config file from time to time and > > > compare the plugin configurations with the ones alredy loaded. > > > Any ideas ? > > > > > > Ovidiu > > > > > > On Tue, 25 Jan 2005 14:31:05 +0100, Cedric Levieux > > > <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > Go to the manager tomcat system and you can stop/start/restart > application > > > > by application ... but it need to stop the application. > > > > > > > > The other possibility is to implement your own web admin system for > > > > configuring your plugins, replacing the values inside by setters. > > > > > > > > Hope it can help, > > > > > > > > Cedric > > > > > > > > ----- Original Message ----- > > > > From: "Ovidiu EFTIMIE" <[EMAIL PROTECTED]> > > > > To: "Struts Users Mailing List" <user@struts.apache.org> > > > > Sent: Tuesday, January 25, 2005 2:27 PM > > > > Subject: Reloading plugin > > > > > > > > > Hi, > > > > > I have an web apllication, using several plugins that I've made, and > I > > > > > want to be able to change the plugin configuration without stopping > > > > > the Tomcat. Does anyone knows if it's possible ? > > > > > > > > > > Thanx, > > > > > Ovidiu > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]