protected void doInit() throws Exception { xfire = createXFire(this.context); super.doInit(); }
@Override protected void doShutDown() throws Exception { // Bus should no longer be the thread default since the component's threads will end now if (bus != null) { BusFactory.setThreadDefaultBus(null); } super.doShutDown(); }
@Override protected void doInit() throws Exception { super.doInit(); List endpoints = getConfiguredEndpoints(); if (endpoints != null && !endpoints.isEmpty()) { Iterator iter = endpoints.iterator(); while (iter.hasNext()) { Endpoint endpoint = (Endpoint) iter.next(); if (endpoint == null) { logger.warn("Ignoring null endpoint in list: {}", endpoints); continue; } addEndpoint(endpoint); } } serviceUnit.init(); }
public DefaultComponent() { setComponent(this); logger.debug("Create the registry"); registry = createRegistry(); logger.debug("Create the SU manager"); serviceUnitManager = createServiceUnitManager(); logger.debug("Create the XBean SU"); XBeanServiceUnit su = new XBeanServiceUnit(); su.setName("#default#"); su.setComponent(this); serviceUnit = su; registry.registerServiceUnit(serviceUnit); }
/** * Adds a new component dynamically */ public void addEndpoint(BeanEndpoint endpoint) throws Exception { super.addEndpoint(endpoint); } }
protected void doStart() throws Exception { super.doStart(); }
@Override protected void doInit() throws Exception { //Load configuration configuration.setRootDir(context.getWorkspaceRoot()); configuration.setComponentName(context.getComponentName()); configuration.load(); if (configuration.getBusCfg() != null && configuration.getBusCfg().length() > 0) { CXF_CONFIG[0] = configuration.getBusCfg(); } if (bus == null) { bus = new SpringBusFactory().createBus(CXF_CONFIG); bus.getProperties().put(org.apache.cxf.interceptor.OneWayProcessorInterceptor.USE_ORIGINAL_THREAD, "true"); } super.doInit(); }
@Override protected void doShutDown() throws Exception { // Bus should no longer be the thread default since the component's threads will end now if (bus != null) { BusFactory.setThreadDefaultBus(null); } super.doShutDown(); }
protected void doInit() throws Exception { super.doInit(); configuration.setRootDir(context.getWorkspaceRoot()); configuration.setComponentName(this.context.getComponentName());
protected void doShutDown() throws Exception { super.doShutDown(); if (server != null) { ContextManager s = server; server = null; s.stop(); s.shutDown(); } if (connectionPool != null) { connectionPool.stop(); connectionPool = null; } if (connectionManager != null) { connectionManager.shutdown(); connectionManager = null; client = null; } }
@Override protected void doInit() throws Exception { //Load configuration configuration.setRootDir(context.getWorkspaceRoot()); configuration.setComponentName(context.getComponentName()); configuration.load(); if (configuration.getBusCfg() != null && configuration.getBusCfg().length() > 0) { SpringBusFactory bf = new SpringBusFactory(); bus = bf.createBus(configuration.getBusCfg()); } else { bus = BusFactory.newInstance().createBus(); } if (getConfiguration().getAuthenticationService() == null) { try { String name = getConfiguration().getAuthenticationServiceName(); Object as = context.getNamingContext().lookup(name); getConfiguration().setAuthenticationService(as); } catch (Throwable e) { try { Class cl = Class.forName("org.apache.servicemix.jbi.security.auth.impl.JAASAuthenticationService"); getConfiguration().setAuthenticationService(cl.newInstance()); } catch (Throwable t) { logger.warn("Unable to retrieve or create the authentication service"); } } } super.doInit(); }
server.start(); super.doInit();