tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Can JSP code be served from a DB instead of files?
Date Mon, 27 Dec 2010 21:14:40 GMT
Hash: SHA1


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
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message