RES: [struts] Re: Dynamically adding an ActionMapping

2004-12-28 Thread Paulo Alvim
in advance! Paulo Alvim Powerlogic - Brazil -Mensagem original- De: Craig McClanahan [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 25 de novembro de 2004 15:18 Para: Struts Users Mailing List; [EMAIL PROTECTED] Assunto: [struts] Re: Dynamically adding an ActionMapping You will no

RE: Dynamically adding an ActionMapping

2004-12-20 Thread David Suarez
ould be easier to embed the different open source projects within one another. Just my 2 cents... Regards...djsuarez -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Sunday, December 19, 2004 3:01 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re:

Re: Dynamically adding an ActionMapping

2004-12-19 Thread Kris Schneider
Along those lines, you might want to check out the backport of JSR 166 (java.util.concurrent): http://www.mathcs.emory.edu/dcl/util/backport-util-concurrent/ And perhaps specifically ConcurrentHashMap: http://tinyurl.com/6c98r Craig McClanahan wrote: Cool ... this looks like a much better solutio

Re: Dynamically adding an ActionMapping

2004-12-19 Thread Craig McClanahan
Cool ... this looks like a much better solution to the problem that FastHashMap tried to solve. And I trust the implementors of this library a *heck* of a lot more than I trust myself (I wrote FastHashMap originally) to get all the nitpicky details right. Craig On Mon, 20 Dec 2004 10:17:11 +13

Re: Dynamically adding an ActionMapping

2004-12-19 Thread Frank W. Zammetti
Just for a laugh, I'll post this... I had just typed up the following response, when it dawned on me exactly why the problem is on the read side. I think I was subconsciously thinking that locking the HashMap during the write would prevent any read from occurring, this is obviously not the cas

Re: Dynamically adding an ActionMapping

2004-12-19 Thread Jason Lea
Craig McClanahan wrote: This is *exactly* where the problem lies. If one looks inside the implementation of HashMap, one sees that there are times when the internal data structures are being modified, and are in a potentially inconsistent state that would corrupt a read operation happening on a si

Re: Dynamically adding an ActionMapping

2004-12-19 Thread Craig McClanahan
On Sun, 19 Dec 2004 09:53:55 -0500, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > While I agree completely with your point about maintainability and > testability (I can't think of a single situation where I would ever > consider dynamic configuration modification), I'm interested in how this > mi

Re: Dynamically adding an ActionMapping

2004-12-19 Thread Frank W. Zammetti
While I agree completely with your point about maintainability and testability (I can't think of a single situation where I would ever consider dynamic configuration modification), I'm interested in how this might be allowed anyway... Wouldn't it be possible to create a thread-safe modification

Re: Dynamically adding an ActionMapping

2004-12-18 Thread Craig McClanahan
On Thu, 16 Dec 2004 11:21:01 -0500, Chaikin, Yaakov Y. <[EMAIL PROTECTED]> wrote: > Craig, > > What is the reason the configuration gets "frozen"? I don't mean to ask > about the mechanics of how it's frozen. I am just curious as to why freeze > it and not let it be dynamically updated during appl

RE: Dynamically adding an ActionMapping

2004-12-16 Thread David G. Friedman
From: Chaikin, Yaakov Y. [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 11:21 AM To: 'Struts Users Mailing List' Subject: RE: Dynamically adding an ActionMapping Craig, What is the reason the configuration gets "frozen"? I don't mean to ask about the mecha

RE: Dynamically adding an ActionMapping

2004-12-16 Thread Chaikin, Yaakov Y.
om: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Thursday, November 25, 2004 1:18 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Dynamically adding an ActionMapping You will not be able to do this in a ServletContextListener, because that gets executed before the Struts servlet has

Re: Dynamically adding an ActionMapping

2004-11-25 Thread Craig McClanahan
on about dynamically adding an > ActionMapping. I would like to do this at application startup through my > StartupListener (courtesy of Matt Raible's AppFuse). I'm really only > interested in adding a few simple ForwardActions.

Dynamically adding an ActionMapping

2004-11-25 Thread Tony Li
Hi all - I haven't been able to locate much information about dynamically adding an ActionMapping. I would like to do this at application startup through my StartupListener (courtesy of Matt Raible's AppFuse). I'm really only interested in adding a few simple ForwardActions

Dynamically adding an ActionMapping

2004-11-25 Thread Tony Li
Hi all - I haven't been able to locate much information about dynamically adding an ActionMapping. I would like to do this at application startup through my StartupListener (courtesy of Matt Raible's AppFuse). I'm really only interested in adding a few simple ForwardActions