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]