You can use the org.apache.derby.jdbc.ClientXADataSource
class on all supported Java SE versions except Java SE 8 Compact Profile 2. On
Java SE 8 Compact Profile 2, you must use the
org.apache.derby.jdbc.BasicClientXADataSource40 class. For more
information, see "JDBC support for Java SE 8 Compact Profiles" in the
.