Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 63361 invoked from network); 29 Jan 2010 11:33:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jan 2010 11:33:46 -0000 Received: (qmail 2878 invoked by uid 500); 29 Jan 2010 11:33:42 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 2809 invoked by uid 500); 29 Jan 2010 11:33:42 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 2794 invoked by uid 99); 29 Jan 2010 11:33:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2010 11:33:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [80.190.253.131] (HELO mail.baseserver.net) (80.190.253.131) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2010 11:33:33 +0000 Received: from [192.168.2.2] (c128167.adsl.hansenet.de [213.39.128.167]) by mail.baseserver.net (Postfix) with ESMTP id 8922E27D00 for ; Fri, 29 Jan 2010 12:33:03 +0100 (CET) Subject: Re: Using Context/Manager with custom nested element From: Martin Grotzke To: Tomcat Users List In-Reply-To: <4B62B412.5060809@pidster.com> References: <1264725071.27175.6.camel@mescalin> <4B62B412.5060809@pidster.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-wFjRD+6o6TqPkbe5oMCT" Date: Fri, 29 Jan 2010 12:33:09 +0100 Message-Id: <1264764789.27175.17.camel@mescalin> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) --=-wFjRD+6o6TqPkbe5oMCT Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 child element for a TranscoderStrategy in my case (somehow comparable to the Store element that is allowed as child element for the PersistentManager), that supports different attributes depending on the TranscoderStrategy implementation. It's possible to put all attributes into the Manager element, but this is not what one would want to do - the related attributes are spread between the Manager related attributes. Cheers, Martin On Fri, 2010-01-29 at 10:10 +0000, Pid wrote: > On 29/01/2010 00:31, Martin Grotzke wrote: > > Hi, > > > > is it somehow possible to have a custom nested element below the Manage= r > > element in server.xml/context.xml? E.g. > > > > > > > > > > > > where the MyManager class has a property fooBar? >=20 > If the MyManager class has a field called fooBar, with matching getter=20 > and setter, then (my guess, based on how Valves work, is that) you can=20 > probably set it by doing this: >=20 > >=20 > >=20 >=20 > p >=20 > > AFAICS the ContextRuleSet defines what's possible in the Context elemen= t > > without any hook - so it seems that there's no possibility to achieve > > this. > > > > If someone could tell me that I'm wrong with this asumption I would be > > happy! :-) > > > > Thanx&& cheers, > > Martin > > >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org >=20 --=20 Martin Grotzke http://www.javakaffee.de/blog/ --=-wFjRD+6o6TqPkbe5oMCT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAktix3UACgkQ7FvOl7Te+pYd/QCfa0R834pmas7QlMr+nI3Sgt5J M+EAoMfUN3fIAd7u1ufZy798F6blkyuy =ui00 -----END PGP SIGNATURE----- --=-wFjRD+6o6TqPkbe5oMCT--