Re: Using Context/Manager with custom nested element

2010-02-04 Thread Martin Grotzke
On Thu, 2010-02-04 at 12:27 +, Pid wrote: > On 03/02/2010 23:50, Martin Grotzke wrote: > > On Fri, 2010-01-29 at 14:58 +, Pid wrote: > >> On 29/01/2010 11:33, Martin Grotzke wrote: > >>> Hi Pid, > >>> > >>> what you describe is correct and works, I've implemented a Manager > >>> implementat

Re: Using Context/Manager with custom nested element

2010-02-04 Thread Pid
On 03/02/2010 23:50, Martin Grotzke wrote: On Fri, 2010-01-29 at 14:58 +, Pid wrote: On 29/01/2010 11:33, Martin Grotzke wrote: Hi Pid, what you describe is correct and works, I've implemented a Manager implementation that uses simple attributes until now (for memcached based session failo

Re: Using Context/Manager with custom nested element

2010-02-03 Thread Martin Grotzke
On Fri, 2010-01-29 at 14:58 +, Pid wrote: > On 29/01/2010 11:33, Martin Grotzke wrote: > > Hi Pid, > > > > what you describe is correct and works, I've implemented a Manager > > implementation that uses simple attributes until now (for memcached > > based session failover, memcached-session-man

Re: Using Context/Manager with custom nested element

2010-01-29 Thread Pid
On 29/01/2010 11:33, Martin Grotzke wrote: Hi Pid, what you describe is correct and works, I've implemented a Manager implementation that uses simple attributes until now (for memcached based session failover, memcached-session-manager: http://code.google.com/p/memcached-session-manager/ ). How

Re: Using Context/Manager with custom nested element

2010-01-29 Thread Martin Grotzke
Hi Pid, what you describe is correct and works, I've implemented a Manager implementation that uses simple attributes until now (for memcached based session failover, memcached-session-manager: http://code.google.com/p/memcached-session-manager/ ). However, now I want to support a complex, nested

Re: Using Context/Manager with custom nested element

2010-01-29 Thread Pid
On 29/01/2010 00:31, Martin Grotzke wrote: Hi, is it somehow possible to have a custom nested element below the Manager element in server.xml/context.xml? E.g. where the MyManager class has a property fooBar? If the MyManager class has a field called fooBar, with matching getter and s

Re: Using Context/Manager with custom nested element

2010-01-28 Thread Martin Grotzke
Hi Jason, thanx for your confirmation. Your proposed solution is what I wanted to avoid... Thanx && cheers, Martin On Thu, 2010-01-28 at 18:20 -0800, Jason Brittain wrote: > You're right that you would need to modify Tomcat's code to do that. > Commons-digester > would need to be told how to re

Re: Using Context/Manager with custom nested element

2010-01-28 Thread Jason Brittain
You're right that you would need to modify Tomcat's code to do that. Commons-digester would need to be told how to read a new nested element. Without modifying the code, you may, however, be able to get away with something like: .. where your custom MyManager class has String properties foo and

Using Context/Manager with custom nested element

2010-01-28 Thread Martin Grotzke
Hi, is it somehow possible to have a custom nested element below the Manager element in server.xml/context.xml? E.g. where the MyManager class has a property fooBar? AFAICS the ContextRuleSet defines what's possible in the Context element without any hook - so it seems that there's no poss