Hi there, thanks for the ideas. For my purpose the best choice would be writing a matcher based on a database. Here's a suggestion for other dynamic configuration: For the applications which require dynamic configuration, I wrote some kind of "configuration-framework". This lets you use different configuration sources (properties-file, database, xml or what ever) and has a built-in reload-mechanism on specified events. For XML-configuration this event is the file-modification. If such an event is fired all objects using the configuration are notified (if they choose to listen for that event) and can aply the new properties. I am aware that there are situations where properties cannot be dynamic, but mailetconfiguration should be no problem. I think that at least dynamic mailet-configuration would boost the usability and maintainability (is there such word? I'm just a german lamer... :-) of JAMES, so I would like to see such things. I don't know the general "masterplan" for the near future of JAMES, but if others think that this feature may be useful and important I would discuss a bit more about that. And of course I would help coding this feature... greetz Peter Romianowski > -----Urspr�ngliche Nachricht----- > Von: Serge Knystautas [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 8. August 2001 21:01 > An: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Betreff: Re: Dynamic Configuration (at run time) > > > Right now there's now way to do this at runtime. We are partially hoping > that Avalon will support reloading of the server app, but I was > thinking we > may go ahead and add this for just the mailets, since really we don't want > the entire application to restart, just the mailet processing > configuration. > We'd have to take a custom class loader so we could reload these > easily, and > maybe at some point even support automatic compilation for > changed classes, > and other things that web application servers do. > > But like someone said, for forwarding you may just want to do it > based on a > database table (or file). > > Serge Knystautas > Loki Technologies > http://www.lokitech.com/ > ----- Original Message ----- > From: "Peter Romianowski" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, August 06, 2001 10:49 AM > Subject: Dynamic Configuration (at run time) > > > > Hi there, > > > > for the application I write I need to construct a lot of mail aliases > > (forwards) at runtime. I already set up aliases using the <mailet > > match="[EMAIL PROTECTED]" class="Forward"> - thing. Works > great. But > > with this solution I hava to restart James in order to read the > > configuration again. > > Is there any way to add mailet-configuration at runtime? > > > > thanks, > > pero > > > > > > --------------------------------------------------------------------- > > 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]
