Package org.apache.axis2.engine

Examples of org.apache.axis2.engine.AxisConfigurator


      doDeployment(configContext);
    }
  }

  private void doDeployment(ConfigurationContext configContext) {
    AxisConfigurator axisConfigurator = configContext.getAxisConfiguration().getConfigurator();
    if (axisConfigurator instanceof CarbonAxisConfigurator) {
      ((CarbonAxisConfigurator) axisConfigurator).runDeployment();
    } else if (axisConfigurator instanceof TenantAxisConfigurator) {
      ((TenantAxisConfigurator) axisConfigurator).runDeployment();
    }
View Full Code Here


     * }
     */
  }

  private void setRepoUpdateFailed(ConfigurationContext configContext) {
    AxisConfigurator axisConfigurator = configContext.getAxisConfiguration().getConfigurator();
    if (axisConfigurator instanceof CarbonAxisConfigurator) {
      ((CarbonAxisConfigurator) axisConfigurator).setRepoUpdateFailed();
    } else if (axisConfigurator instanceof TenantAxisConfigurator) {
      ((TenantAxisConfigurator) axisConfigurator).setRepoUpdateFailed();
    }
View Full Code Here

   *
   * @see org.pentaho.platform.plugin.services.pluginmgr.IServiceManager#initServices()
   */
  public void initServices() throws ServiceInitializationException {
    getConfigurator().setSession( PentahoSessionHolder.getSession() );
    AxisConfigurator axisConfigurator = getConfigurator();

    // create the axis configuration and make it accessible to content generators via static member
    ConfigurationContext configContext = null;
    try {
      configContext = ConfigurationContextFactory.createConfigurationContext( axisConfigurator );
    } catch ( AxisFault e ) {
      throw new ServiceInitializationException( e );
    }
    configContext.setProperty( Constants.CONTAINER_MANAGED, Constants.VALUE_TRUE );

    currentAxisConfigContext = configContext;
    currentAxisConfiguration = configContext.getAxisConfiguration();

    // now load the services
    axisConfigurator.loadServices();
  }
View Full Code Here

      doDeployment(configContext);
    }
  }

  private void doDeployment(ConfigurationContext configContext) {
    AxisConfigurator axisConfigurator = configContext.getAxisConfiguration().getConfigurator();
    if (axisConfigurator instanceof CarbonAxisConfigurator) {
      ((CarbonAxisConfigurator) axisConfigurator).runDeployment();
    } else if (axisConfigurator instanceof TenantAxisConfigurator) {
      ((TenantAxisConfigurator) axisConfigurator).runDeployment();
    }
View Full Code Here

     * }
     */
  }

  private void setRepoUpdateFailed(ConfigurationContext configContext) {
    AxisConfigurator axisConfigurator = configContext.getAxisConfiguration().getConfigurator();
    if (axisConfigurator instanceof CarbonAxisConfigurator) {
      ((CarbonAxisConfigurator) axisConfigurator).setRepoUpdateFailed();
    } else if (axisConfigurator instanceof TenantAxisConfigurator) {
      ((TenantAxisConfigurator) axisConfigurator).setRepoUpdateFailed();
    }
View Full Code Here

                completeCleanup(axisService);

                //ODE-994: commenting the cleanup on axisConfig as it cleansup everything on axis2 1.6
                //_server._axisConfig.cleanup();
                //For backward compatibility with older versions of axis2 that is below 1.6
                AxisConfigurator configurator = _server._configContext.getAxisConfiguration().getConfigurator();
                if(configurator != null)
                    configurator.cleanup();

            } catch (AxisFault axisFault) {
                __log.error("Couldn't destroy service " + serviceName);
            }
        } else {
View Full Code Here

                completeCleanup(axisService);

                //ODE-994: commenting the cleanup on axisConfig as it cleansup everything on axis2 1.6
                //_server._axisConfig.cleanup();
                //For backward compatibility with older versions of axis2 that is below 1.6
                AxisConfigurator configurator = _server._axisConfig.getConfigurator();
                if(configurator != null)
                    configurator.cleanup();

            } catch (AxisFault axisFault) {
                __log.error("Couldn't destroy service " + serviceName);
            }
        } else {
View Full Code Here

                    "Components of the proxy service may not be initialized");
            }

            AxisService as = axisConfig.getServiceForActivation(this.getName());
            as.setActive(true);
            axisConfig.notifyObservers(new AxisEvent(AxisEvent.SERVICE_START, as), as);
            this.setRunning(true);
            auditInfo("Started the proxy service : " + name);
        } else {
            auditWarn("Unable to start proxy service : " + name +
                ". Couldn't access Axis configuration");
View Full Code Here

            try {
                AxisService as = axisConfig.getService(this.getName());
                if (as != null) {
                    as.setActive(false);
                    axisConfig.notifyObservers(new AxisEvent(AxisEvent.SERVICE_STOP, as), as);
                }
                this.setRunning(false);
                auditInfo("Stopped the proxy service : " + name);
            } catch (AxisFault axisFault) {
                handleException("Error stopping the proxy service : " + name, axisFault);
View Full Code Here

                }
            }

            workerPool.execute( new Runnable() {
                public void run() {
                    MessageReceiver mr = mc.getAxisOperation().getMessageReceiver();
                    try {
                        // This AxisFault is created to create the fault message context
                        // noinspection ThrowableInstanceNeverThrown
                        AxisFault axisFault = exceptionToRaise != null ?
                                new AxisFault(errorMessage, exceptionToRaise) :
                                new AxisFault(errorMessage);

                        MessageContext nioFaultMessageContext =
                            MessageContextBuilder.createFaultMessageContext(mc, axisFault);

                        SOAPEnvelope envelope = nioFaultMessageContext.getEnvelope();

                        if (log.isDebugEnabled()) {
                            log.debug("Sending Fault for Request with Message ID : "
                                    + mc.getMessageID());
                        }
                       
                        nioFaultMessageContext.setProperty(
                            NhttpConstants.SENDING_FAULT, Boolean.TRUE);
                        nioFaultMessageContext.setProperty(
                                NhttpConstants.ERROR_MESSAGE, errorMessage);
                        if (errorCode != -1) {
                            nioFaultMessageContext.setProperty(
                                NhttpConstants.ERROR_CODE, errorCode);
                        }
                        if (exceptionToRaise != null) {
                            nioFaultMessageContext.setProperty(
                                NhttpConstants.ERROR_DETAIL, exceptionToRaise.toString());
                            nioFaultMessageContext.setProperty(
                                NhttpConstants.ERROR_EXCEPTION, exceptionToRaise);
                            envelope.getBody().getFault().getDetail().setText(
                                exceptionToRaise.toString());
                        } else {
                            nioFaultMessageContext.setProperty(
                                NhttpConstants.ERROR_DETAIL, errorMessage);
                            envelope.getBody().getFault().getDetail().setText(errorMessage);
                        }
                        nioFaultMessageContext.setProperty(CLIENT_CONNECTION_DEBUG,
                            mc.getProperty(CLIENT_CONNECTION_DEBUG));
                        mr.receive(nioFaultMessageContext);

                    } catch (AxisFault af) {
                        log.error("Unable to report back failure to the message receiver", af);
                    }
                }
View Full Code Here

TOP

Related Classes of org.apache.axis2.engine.AxisConfigurator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.