Change from JDBC to JNDI data sources

In older versions of Jasper reports default data source type was JDBC. But Jasper 5 and higher recommends JNDI and if you use for reports some database functions which write into tables during their run you will find that they are failing with old JDBC connections....