Append URL parameter to server.xml datasource

37 Views Asked by At

Ive been provided a mysql datasource to work with defined in my tomcat server.xml file, and I do not have the power to edit the datasource directly. However, I've run into an exception on zeroed timestamp conversion - which would typically require me to edit the URL on the datasource to include a suffix like ?zeroDateTimeBehavior=convertToNull. I'm accessing the datasource via JndiDatasourceLookup - is there a way for me to programmatically add that suffix onto the connection?

0

There are 0 best solutions below