protected void doInit() throws Exception { xfire = createXFire(this.context); super.doInit(); }
@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(); }
protected void doInit() throws Exception { super.doInit(); configuration.setRootDir(context.getWorkspaceRoot()); configuration.setComponentName(this.context.getComponentName());
@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();