mirror of
https://github.com/apache/openjpa.git
synced 2025-02-22 18:32:06 +00:00
Wrong logic in setting default remote commit provider
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1224948 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6bc2b5671d
commit
857abde46c
@ -702,9 +702,9 @@ public class PersistenceProductDerivation
|
||||
String dc = oconf.getDataCache();
|
||||
String rcp = oconf.getRemoteCommitProvider();
|
||||
// If the datacache is set and is something other than false
|
||||
if (dc != null && dc.equals("false") == false) {
|
||||
if (dc != null && !"false".equals(dc)) {
|
||||
// If RCP is null or empty, set it to sjvm.
|
||||
if (rcp == null || (rcp != null && rcp.equals("") == false)) {
|
||||
if (rcp == null || "".equals(rcp)) {
|
||||
oconf.setRemoteCommitProvider("sjvm");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user