Re: Trying to mix db connection pooling on web and desktop applications

2008-07-23 Thread Johnny Kewl
Out of luck ;) Dont think it can be done... I think JNDI has a problem serving dB connection pools outside of a container... it needs the classloaders, common JVM etc etc. I imagine one could make a RMI type provider... but a direct connection to the dB via JDBC is probably always going to be

Re: Trying to mix db connection pooling on web and desktop applications

2008-07-22 Thread Sameer Acharya
As I see it you are mixing two different things, your web application will always run inside Tomcat server but your desktop application can be anywhere(not just on TC server). The simplest way to do this might be to write your own database connection helper class which would go to the context (

Re: Trying to mix db connection pooling on web and desktop applications

2008-07-22 Thread Ken Bowen
Alejandro, I've dealt with a similar problem by utilizing the Primrose database connection pool (http://www.primrose.org.uk/) for my application in desktop mode. I've used MySQL or postgreSQL, and used Tomcat's db pool when my app runs in web mode. For desktop mode, one sets up a Primrose