Skip to content

Commit

Permalink
for #411 overwriting configmanager is a bad idea
Browse files Browse the repository at this point in the history
  • Loading branch information
mlbiam committed Apr 20, 2020
1 parent 38d5908 commit 3d52934
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class OpenUnisonServletFilter extends UnisonServletFilter {



public static final String version = "1.0.18-2020042002";
public static final String version = "1.0.18-2020042003";



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ public void initFilter(HttpFilterConfig config) throws Exception {
if (filter.getClazz().equalsIgnoreCase("com.tremolosecurity.scalejs.ws.ScaleMain")) {
for (ParamType pt : filter.getParam()) {
if (pt.getName().equalsIgnoreCase("uiHelperClassName")) {
this.dec = (UiDecisions) Class.forName(pt.getName()).newInstance();
this.dec = (UiDecisions) Class.forName(pt.getValue()).newInstance();
} else if (pt.getName().equalsIgnoreCase("uihelper.params")) {
String v = pt.getValue();
String name = v.substring(0,v.indexOf('='));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,10 @@ public ProvisioningEngineImpl(ConfigManager cfgMgr) throws ProvisioningException

this.cfgMgr = cfgMgr;

GlobalEntries.getGlobalEntries().set(ProxyConstants.CONFIG_MANAGER, cfgMgr);

if (GlobalEntries.getGlobalEntries().getConfigManager() == null) {
GlobalEntries.getGlobalEntries().set(ProxyConstants.CONFIG_MANAGER, cfgMgr);
}

this.initLocalBroker();

Expand Down Expand Up @@ -576,6 +579,9 @@ public ProvisioningEngineImpl(ConfigManager cfgMgr) throws ProvisioningException
*/
@Override
public void initWorkFlows() throws ProvisioningException {



Iterator<String> wfNames = this.workflows.keySet().iterator();
while (wfNames.hasNext()) {
String name = wfNames.next();
Expand Down Expand Up @@ -1420,10 +1426,11 @@ private void initLocalBroker() throws ProvisioningException {
}

try {

JMSSessionHolder sessionHolder = JMSConnectionFactory.getConnectionFactory().getSession(taskQueueName);
this.mpPools.add(sessionHolder);
} catch (Exception e) {
logger.warn("Could not create internal queue",e);
} catch (Throwable t) {
logger.warn("Could not create internal queue " + taskQueueName);
}

} else {
Expand Down

0 comments on commit 3d52934

Please sign in to comment.