Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
I want to have just one connection pool with a pre-defined name so
that I can monitor it via JMX without updating the name every time.
So, I create a connection pool set up the way I want to and register
it with a JNDI name.
When hibernate fetches the C3P0 pool out of JNDI, however, it seems
that it gets a new instance of the pool with a new randomly generated
name instead of the one that I registered.
Any idea how I can tell JNDI to return the same instance every time?
Or just tell hibernate to use my instance of the pool when it loads
the persistence context?
Thanks in advance!