This post is an update to my previous post on setting up SMX4 with high availability in mind.
Since the transition to Apache Felix Karaf the support for more database locking table back ends has expanded. Specifically you can now use Apache Derby, MySQL, or a generic JDBC connector. The Derby and Generic JDBC locks make use of the 'FOR UPDATE' feature common to many databases. The MySQL lock however makes use of the ' LOCK TABLES' directive, this is due to the 'FOR UPDATE' command not returning a ResultSet on more recent versions of MySQL (see some discussions on this here).
The following system.properties configuration will allow your Karaf based SMX4 instance to use a MySQL JDBC lock:
Please note that the MySQL JDBC driver will have to be made available on the classpath.