it should be, i haven't run into any jdbc drivers yet that aren't backwards compatible... and on mysql's website it's the only jdbc driver they have posted, so assumed it will work with all version... But! -- it's better to test and be sure instead of assuming.
I can't restart my openfire right now, but in the morning tomorrow I'll try this on my setup (mysql 5.1.x) and see what happens.