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!
Get latest updates about Open Source Projects, Conferences and News.