Skip to content

Commit

Permalink
Channel factory service name changed, broke inCluster
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrossley3 committed Aug 31, 2015
1 parent a9a4cf3 commit c7dcc7d
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -66,8 +66,9 @@ public static JChannel lockableChannel(final String id) throws Exception {
return chan;
}

private static final ServiceName WF8_JGROUPS_STACK_NAME = ServiceName.parse("jboss.jgroups.stack");
private static final ServiceName WF9_JGROUPS_STACK_NAME = ServiceName.parse("jboss.jgroups.factory.default-stack");
private static final ServiceName WF8_JGROUPS_STACK_NAME = ServiceName.parse("jboss.jgroups.stack");
private static final ServiceName WF9_JGROUPS_STACK_NAME = ServiceName.parse("jboss.jgroups.factory.default-stack");
private static final ServiceName WF10_JGROUPS_STACK_NAME = ServiceName.parse("jboss.jgroups.factory.default");

public static Object channelFactory() {
ServiceRegistry registry = (ServiceRegistry)WunderBoss.options().get("service-registry");
Expand All @@ -76,6 +77,9 @@ public static Object channelFactory() {
if (serviceController == null) {
serviceController = registry.getService(WF9_JGROUPS_STACK_NAME);
}
if (serviceController == null) {
serviceController = registry.getService(WF10_JGROUPS_STACK_NAME);
}
return serviceController == null ? null : serviceController.getValue();
}

Expand Down

0 comments on commit c7dcc7d

Please sign in to comment.