Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 70764 invoked from network); 27 Dec 2010 21:15:30 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Dec 2010 21:15:30 -0000 Received: (qmail 81940 invoked by uid 500); 27 Dec 2010 21:15:26 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 81715 invoked by uid 500); 27 Dec 2010 21:15:26 -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 81706 invoked by uid 99); 27 Dec 2010 21:15:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Dec 2010 21:15:26 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.59.211] (HELO QMTA11.westchester.pa.mail.comcast.net) (76.96.59.211) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Dec 2010 21:15:19 +0000 Received: from omta09.westchester.pa.mail.comcast.net ([76.96.62.20]) by QMTA11.westchester.pa.mail.comcast.net with comcast id oLmp1f0050SCNGk5BMEzRf; Mon, 27 Dec 2010 21:14:59 +0000 Received: from [192.168.1.201] ([69.143.109.145]) by omta09.westchester.pa.mail.comcast.net with comcast id oMEh1f00F38FjT13VMEsqN; Mon, 27 Dec 2010 21:14:57 +0000 Message-ID: <4D1901C0.8090700@christopherschultz.net> Date: Mon, 27 Dec 2010 16:14:40 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Can JSP code be served from a DB instead of files? References: <4D16B8E7.8050302@computer.org> <4D17134B.4020601@apache.org> <4D179E97.4080406@computer.org> In-Reply-To: <4D179E97.4080406@computer.org> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David, On 12/26/2010 2:59 PM, David Wall wrote: > On 12/26/2010 2:04 AM, Mark Thomas wrote: >> Yes. You'll need to extend BaseDirContext in >> org.apache.naming.resources. For some examples, see FileDirContext and >> WarDirContext in the same package. > > Thanks for the pointers, Mark. From what you are saying, this would be > a Tomcat-specific solution. I was hoping for something that would work > in standard way so it would be portable. I'm not sure there is going to be a pure-Java, container-agnostic solution. There is certainly nothing in the servlet spec that will help you with this, so your solution is likely to be either container-specific, or not a container-related solution (like using a db-based filesystem mounted at the OS level). > While we use Tomcat ourselves, > we've had users who run on other containers. I'll take a look though > since maybe it's something that can be plugged into other containers, too. Good luck. In either case, a DataSourceDirContext would be a nice addition to Tomcat. ;) - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0ZAcAACgkQ9CaO5/Lv0PCAdACfVaje7D7FMa7/k8IMZAHVXwwl 4LAAoJwSNa97Ejk8wwnfOl/s6hH19roE =7Bbl -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org