I have a JAVA web application running on Linux which works fine. The connections are taken from the tomcat (web-server) connection pool.
The problem is, there is a scheduled task which needs to bew run, using cron, every day.
It runs, but it does not use the connection from tomcat, because (I think) it is not running in hte web-server environment. It is a mysql database. Is there any other way to connect so that I can avoid this problem, such as having a global datasource?