This closes #3576
This commit is contained in:
commit
b772c47542
|
@ -75,10 +75,17 @@ public class OsgiBroker {
|
||||||
security.setRolePrincipalClass(rolePrincipalClass);
|
security.setRolePrincipalClass(rolePrincipalClass);
|
||||||
}
|
}
|
||||||
String brokerInstance = null;
|
String brokerInstance = null;
|
||||||
String karafDataDir = System.getProperty("karaf.data");
|
|
||||||
if (karafDataDir != null) {
|
String artemisDataDir = System.getProperty("artemis.data");
|
||||||
brokerInstance = karafDataDir + "/artemis/" + name;
|
if (artemisDataDir != null) {
|
||||||
}
|
brokerInstance = artemisDataDir + "/artemis/" + name;
|
||||||
|
} else {
|
||||||
|
String karafDataDir = System.getProperty("karaf.data");
|
||||||
|
if (karafDataDir != null) {
|
||||||
|
brokerInstance = karafDataDir + "/artemis/" + name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// todo if we start to pullout more configs from the main config then we
|
// todo if we start to pullout more configs from the main config then we
|
||||||
// should pull out the configuration objects from factories if available
|
// should pull out the configuration objects from factories if available
|
||||||
|
|
Loading…
Reference in New Issue