@Override protected URI internalNewURI(ActiveMQConnectionFactory bean) throws Exception { return InVMServerLocatorSchema.getUri(bean.getStaticConnectors()); } }
@Override protected URI internalNewURI(ActiveMQConnectionFactory bean) throws Exception { String query = BeanSupport.getData(null, bean); TransportConfiguration[] staticConnectors = bean.getStaticConnectors(); return TCPServerLocatorSchema.getURI(query, staticConnectors); } }
@Override protected URI internalNewURI(ActiveMQConnectionFactory bean) throws Exception { return InVMServerLocatorSchema.getUri(bean.getStaticConnectors()); } }
@Override protected URI internalNewURI(ActiveMQConnectionFactory bean) throws Exception { return InVMServerLocatorSchema.getUri(bean.getStaticConnectors()); } }
@Override protected URI internalNewURI(ActiveMQConnectionFactory bean) throws Exception { return InVMServerLocatorSchema.getUri(bean.getStaticConnectors()); } }
@Override protected URI internalNewURI(ActiveMQConnectionFactory bean) throws Exception { return InVMServerLocatorSchema.getUri(bean.getStaticConnectors()); } }
@Override protected URI internalNewURI(ActiveMQConnectionFactory bean) throws Exception { String query = BeanSupport.getData(null, bean); TransportConfiguration[] staticConnectors = bean.getStaticConnectors(); return TCPServerLocatorSchema.getURI(query, staticConnectors); } }
@Override protected URI internalNewURI(ActiveMQConnectionFactory bean) throws Exception { String query = BeanSupport.getData(null, bean); TransportConfiguration[] staticConnectors = bean.getStaticConnectors(); return TCPServerLocatorSchema.getURI(query, staticConnectors); } }
@Override protected URI internalNewURI(ActiveMQConnectionFactory bean) throws Exception { String query = BeanSupport.getData(null, bean); TransportConfiguration[] staticConnectors = bean.getStaticConnectors(); return TCPServerLocatorSchema.getURI(query, staticConnectors); } }
@Override protected URI internalNewURI(ActiveMQConnectionFactory bean) throws Exception { String query = BeanSupport.getData(null, bean); TransportConfiguration[] staticConnectors = bean.getStaticConnectors(); return TCPServerLocatorSchema.getURI(query, staticConnectors); } }
@Test public void testConnectionFactoryStatic1() throws Exception { createStaticFactory(true); cf = (ActiveMQConnectionFactory) namingContext.lookup("/MyConnectionFactory"); // apparently looking up the connection factory with the org.apache.activemq.artemis.jms.tests.tools.container.InVMInitialContextFactory // is not enough to actually serialize it so we serialize it manually byte[] x = serialize(cf); ActiveMQConnectionFactory y = deserialize(x, ActiveMQConnectionFactory.class); checkEquals(cf, y); Assert.assertEquals(cf.isHA(), y.isHA()); TransportConfiguration[] staticConnectors = y.getStaticConnectors(); Assert.assertEquals(staticConnectors.length, 2); TransportConfiguration tc0 = cf.getStaticConnectors()[0]; TransportConfiguration y0 = y.getStaticConnectors()[0]; Map<String, Object> ctParams = tc0.getParams(); Map<String, Object> y0Params = y0.getParams(); Assert.assertEquals(ctParams.size(), y0Params.size()); for (String key : y0Params.keySet()) { Assert.assertEquals(ctParams.get(key), y0Params.get(key)); } }
final double retryIntervalMultiplier, final int reconnectAttempts) { TransportConfiguration[] cfStaticConnectors = cf.getStaticConnectors(); if (staticConnectors == null) { Assert.assertNull(staticConnectors);
cf.getStaticConnectors(); cf.getClientID(); cf.getClientFailureCheckPeriod();