public ViewProcessor getViewProcessor() { ComponentInfo info = _componentServer.getComponentInfo(ViewProcessor.class, "main"); URI jmsBrokerUri = URI.create(info.getAttribute(ComponentInfoAttributes.JMS_BROKER_URI)); ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory(jmsBrokerUri); JmsConnectorFactoryBean factory = new JmsConnectorFactoryBean(); factory.setName(getClass().getSimpleName()); factory.setConnectionFactory(cf); factory.setClientBrokerUri(jmsBrokerUri); JmsConnector jmsConnector = factory.getObjectCreating(); URI uri = UriBuilder.fromUri(info.getUri()).build(); return new RemoteViewProcessor(uri, jmsConnector, _scheduler); }
public ConfigMaster getConfigMaster() { ComponentInfo info = _componentServer.getComponentInfo(ConfigMaster.class, "main"); return new RemoteConfigMaster(info.getUri()); }