> I'll bet the only thing your code does with a JNDI string is perform the
lookup and get a Datasource. You could implement multiple constructors
allowing your code to be initialized w/ a JNDI string, DataSource
object, or url/username/password. The code utilizing the model classes
would simpl
Martin Gainty wrote:
> http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
> is a JNDI 'emulator'
Huh? Care to explain what you mean by that remark?
> i heard chilisoft was implementing JNDI for Tomcat but EOL'ed when Glassfish
> came out
> I wonder if anyone can resurrect?
What
ent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Sun, 27 Sep 2009 15:27:35 -0400
> From: mark.shif...@yale.edu
> Subject: Re: debugging model classes tied to Tomcat datasources
> To: users@tomcat.apache.org
es email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
Date: Sun, 27 Sep 2009 12:38:11 -0400
From: mark.shif...@yale.edu
Subject: Re: debugging model classes tied to Tomcat datasources
To: users@tomcat.apache.org
Hi:
This
manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Sun, 27 Sep 2009 12:38:11 -0400
> From: mark.shif...@yale.edu
> Subject: Re: debugging model classes tied to Tomcat datasources
> To: users@tomcat.apache.org
>
> Hi:
> This is what I do
Hi:
This is what I do for testing. I made a class for creating a jndi
directory and I create this in my main, then I can get a datasource from
the jndi directory just like I do it when running tomcat.
jndi.properties
java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
java
Eric P wrote:
> Hi,
>
> (Tomcat newb alert)
>
> I've got a simple database servlet application that has a few model
> classes on the back end.
>
> I have the model classes pretty well genericized so that they could
> (almost) be utilized outside of Tomcat by another app, but they do
> utilize the T
> From: Eric P [mailto:eric.maill...@gmail.com]
> Subject: debugging model classes tied to Tomcat datasources
>
> they do utilize the Tomcat data sources I've set up (via
> an InitialContext data source lookup). So this makes it
> impossible (?) to execute the model classes outside of Tomcat.
T