@Override protected BroadcastEndpointFactory createBroadcastEndpointFactory(ConnectionFactoryProperties overrideProperties) { String clusterName = overrideProperties.getJgroupsChannelName() != null ? overrideProperties.getJgroupsChannelName() : getJgroupsChannelName(); if (clusterName != null) { String channelRefName = this.getProperties().getJgroupsChannelRefName(); String[] split = channelRefName.split("/"); String serverName = split[0]; String key = split[1]; String pcf = null; if (key.indexOf(':') >= 0) { split = key.split(":"); pcf = split[0]; key = split[1]; } if (serverName != null && !serverName.isEmpty()) { ActiveMQServerService service = (ActiveMQServerService) currentServiceContainer().getService(MessagingServices.getActiveMQServiceName(serverName)).getService(); return new CommandDispatcherBroadcastEndpointFactory(service.getCommandDispatcherFactory(key), clusterName); } assert pcf != null; ExternalPooledConnectionFactoryService service = (ExternalPooledConnectionFactoryService) currentServiceContainer().getService(JMSServices.getPooledConnectionFactoryBaseServiceName(JBOSS_MESSAGING_ACTIVEMQ).append(pcf)).getService(); return new CommandDispatcherBroadcastEndpointFactory(service.getCommandDispatcherFactory(key), clusterName); } return super.createBroadcastEndpointFactory(overrideProperties); }
@Override protected BroadcastEndpointFactory createBroadcastEndpointFactory(ConnectionFactoryProperties overrideProperties) { String clusterName = overrideProperties.getJgroupsChannelName() != null ? overrideProperties.getJgroupsChannelName() : getJgroupsChannelName(); if (clusterName != null) { String channelRefName = this.getProperties().getJgroupsChannelRefName(); String[] split = channelRefName.split("/"); String serverName = split[0]; String key = split[1]; String pcf = null; if (key.indexOf(':') >= 0) { split = key.split(":"); pcf = split[0]; key = split[1]; } if (serverName != null && !serverName.isEmpty()) { ActiveMQServerService service = (ActiveMQServerService) currentServiceContainer().getService(MessagingServices.getActiveMQServiceName(serverName)).getService(); return new CommandDispatcherBroadcastEndpointFactory(service.getCommandDispatcherFactory(key), clusterName); } assert pcf != null; ExternalPooledConnectionFactoryService service = (ExternalPooledConnectionFactoryService) currentServiceContainer().getService(JMSServices.getPooledConnectionFactoryBaseServiceName(JBOSS_MESSAGING_ACTIVEMQ).append(pcf)).getService(); return new CommandDispatcherBroadcastEndpointFactory(service.getCommandDispatcherFactory(key), clusterName); } return super.createBroadcastEndpointFactory(overrideProperties); }
BroadcastEndpointFactory endpointFactory = this.createBroadcastEndpointFactory(overrideProperties); if (endpointFactory == null) { throw new IllegalArgumentException("must provide either TransportType or DiscoveryGroupAddress and DiscoveryGroupPort for ResourceAdapter Connection Factory");
BroadcastEndpointFactory endpointFactory = this.createBroadcastEndpointFactory(overrideProperties); if (endpointFactory == null) { throw new IllegalArgumentException("must provide either TransportType or DiscoveryGroupAddress and DiscoveryGroupPort for ResourceAdapter Connection Factory");
BroadcastEndpointFactory endpointFactory = this.createBroadcastEndpointFactory(overrideProperties);
BroadcastEndpointFactory endpointFactory = this.createBroadcastEndpointFactory(overrideProperties);