c3p0 « jndi « Java Enterprise Q&A





1. Close Jetty DataSources when the web application context is destroyed    stackoverflow.com

I'm using the maven-jetty-plugin to run a web application in development mode. Also, I configure a c3p0 JNDI DataSource in jetty-env.xml:

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
  <Configure ...

2. JNDI lookup failed (NameNotFoundException)    stackoverflow.com

UPDATE: Well, it seems that this is a problem only when I try to debug locally. When published on Jetty (not the same machine) it works great. Is it possible to ...