reta commented on code in PR #3805:
URL: https://github.com/apache/cxf/pull/3805#discussion_r4754210162
##########
rt/ws/rm/src/test/java/org/apache/cxf/ws/rm/persistence/jdbc/RMTxStoreTest.java:
##########
@@ -45,26 +45,19 @@ public class RMTxStoreTest extends RMTxStoreTestBase {
public static void setUpOnce() {
RMTxStoreTestBase.setUpOnce();
- RMTxStore.deleteDatabaseFiles();
-
- store = new RMTxStore();
- store.setDriverClassName("org.apache.derby.jdbc.EmbeddedDriver");
+ store = new RMTxStore() {
+ @Override
+ protected boolean isRecoverableError(SQLException ex) {
+ // check for a transient or non-transient connection exception
+ return ex.getSQLState() != null &&
ex.getSQLState().startsWith("90007");
Review Comment:
See please https://github.com/apache/cxf/pull/3805#issuecomment-7311384291
for reasoning why
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]