Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 69784 invoked from network); 7 Nov 2005 22:34:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Nov 2005 22:34:06 -0000 Received: (qmail 99909 invoked by uid 500); 7 Nov 2005 22:33:58 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 99898 invoked by uid 500); 7 Nov 2005 22:33:58 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 99887 invoked by uid 99); 7 Nov 2005 22:33:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2005 14:33:58 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [67.100.62.251] (HELO ronreynolds.com) (67.100.62.251) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2005 14:33:51 -0800 Received: (qmail 7725 invoked from network); 7 Nov 2005 22:33:34 -0000 Received: from unknown (HELO www.ronreynolds.com) (127.0.0.1) by 0 with SMTP; 7 Nov 2005 22:33:34 -0000 Received: from 198.176.188.201 (proxying for unknown) (SquirrelMail authenticated user ron@ronreynolds.com) by www.ronreynolds.com with HTTP; Mon, 7 Nov 2005 14:33:34 -0800 (PST) Message-ID: <22342.198.176.188.201.1131402814.squirrel@www.ronreynolds.com> In-Reply-To: <161cc99d0511071334i6ab26c5bv123fb77edec493a1@mail.gmail.com> References: <161cc99d0511070908h154bd796pf20747447b254f95@mail.gmail.com> <44579.198.176.188.201.1131387082.squirrel@www.ronreynolds.com> <161cc99d0511071334i6ab26c5bv123fb77edec493a1@mail.gmail.com> Date: Mon, 7 Nov 2005 14:33:34 -0800 (PST) Subject: Re: Application/Server/Service scope objects From: "Ron Reynolds" To: axis-user@ws.apache.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N well, within a web-app you can use the servlet context - you can get to it via the MessageContext: MessageContext ctx = MessageContext.getCurrentContext(); Servlet servlet = (Servlet)ctx.getProperty(HTTPConstants.MC_HTTP_SERVLET); ServletConfig config = servlet.getServletConfig(); ServletContext context = config.getServletContext(); since the servlet context is a web-app-wide Map which is good for the life of the web-app that sounds similar to what you're describing. not as kewl as JNDI, but not as expensive either. :) not too different from a global singleton HashMap, really... > Thanks for the reply Ron. > > > >> >> MyObject myobj =3D (MyObject))getApplicationScope ().getObject( >> "MyDefinedObject" ); >> >> looks a whole lot like a JNDI lookup to me. > > > I didn't mean JNDI lookup, I really just meant like J2EE application, > servlet, page, session scopes, thought there might be something similar in > Axis/SOAP (like the runtime classes available). > > > > if this is all within a single VM, tho, can't you just address this with a >> basic singleton? > > > I want it application-wide, not just available to one class etc... > > Thanks for the reply, does this explain a little more? >