Return-Path: Delivered-To: apmail-jakarta-avalon-phoenix-dev-archive@apache.org Received: (qmail 14316 invoked from network); 3 Dec 2002 14:50:18 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 Dec 2002 14:50:18 -0000 Received: (qmail 11090 invoked by uid 97); 3 Dec 2002 14:51:20 -0000 Delivered-To: qmlist-jakarta-archive-avalon-phoenix-dev@jakarta.apache.org Received: (qmail 11018 invoked by uid 97); 3 Dec 2002 14:51:19 -0000 Mailing-List: contact avalon-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon Developers List" Reply-To: "Avalon Developers List" Delivered-To: mailing list avalon-dev@jakarta.apache.org Received: (qmail 11006 invoked by uid 98); 3 Dec 2002 14:51:19 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Content-Type: text/plain; charset="iso-8859-1" From: Peter Donald To: "Avalon Developers List" Subject: Re: Context: usage recommendations? ( Re: [SUMMARY] Context ) Date: Wed, 4 Dec 2002 02:00:05 +1100 User-Agent: KMail/1.4.2 References: <000501c29ad8$93d8d630$2100a8c0@acsdom1.citius.com> In-Reply-To: <000501c29ad8$93d8d630$2100a8c0@acsdom1.citius.com> X-Notice: Duplication and redistribution prohibited without consent of the author. X-Copyright: (C) 2002 Peter Donald. X-Wisdom: A right is not what someone gives you; it's what no one can take from you. MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212040200.05286.peter@realityforge.org> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 4 Dec 2002 01:30, Berin Loritsch wrote: > Link? It was part of the initial documentation dump that went with JSR111 that = you=20 are part of. HP has since mothballed development of it but you can see th= e=20 remanents of it at; http://www.hpmiddleware.com/SaISAPI.dll/SaServletEngine.class/products/co= re_services_framework/default.jsp > And I fail to see why we can't have stuff like that handled > for us automatically.... It can when it manages the creation and passing of references. What happe= ns=20 when a component wants to pass a reference to itself but wants the refere= nce=20 to be the proxy (and thus isolated/protected). Under CSF you did something like Object me =3D getServiceContext().getProxy() //pass me to foreign component here Or if you wanted to create a new object and pass that object - but make s= ure=20 it was correctly proxied and isolated you would do something like MagicEventListener listener =3D new MyMagicEventListenerImpl() MagicEventListener safeListener =3D (MagicEventListener) getServiceContext().getProxy( MagicEventListener.class, listener ); //pass safeListener to the foreign event service here To do anything like this requires interaction with the container and shar= ing=20 of the isolation stuff that opnly the container maintains. --=20 Cheers, Peter Donald ----------------------------------------------- "Only two things are infinite, the universe and=20 human stupidity, and I'm not sure about the=20 former." -Albert Einstein=20 -----------------------------------------------=20 -- To unsubscribe, e-mail: For additional commands, e-mail: