Re: debugging model classes tied to Tomcat datasources

2009-11-10 Thread Eric P
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

Re: debugging model classes tied to Tomcat datasources

2009-09-27 Thread David Smith
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 Tomcat

Re: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Mark Shifman
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

RE: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Martin Gainty
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 for testing. I made a class for creating a jndi directory and I

Re: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Mark Shifman
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 for testing. I made

RE: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Martin Gainty
, 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 Martin Gainty wrote: Mark have you been able

Re: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Mark Thomas
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

debugging model classes tied to Tomcat datasources

2009-09-26 Thread Eric P
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 Tomcat data sources I've set

RE: debugging model classes tied to Tomcat datasources

2009-09-26 Thread Caldarale, Charles R
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. Tomcat