Search in sources :

Example 1 with AxisConfigurator

use of org.apache.axis2.engine.AxisConfigurator in project pentaho-platform by pentaho.

the class AxisWebServiceManager method initServices.

/*
   * (non-Javadoc)
   * 
   * @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();
}
Also used : AxisFault(org.apache.axis2.AxisFault) ConfigurationContext(org.apache.axis2.context.ConfigurationContext) SystemSolutionAxisConfigurator(org.pentaho.platform.plugin.services.webservices.SystemSolutionAxisConfigurator) AbstractAxisConfigurator(org.pentaho.platform.plugin.services.webservices.AbstractAxisConfigurator) AxisConfigurator(org.apache.axis2.engine.AxisConfigurator) ServiceInitializationException(org.pentaho.platform.api.engine.ServiceInitializationException)

Aggregations

AxisFault (org.apache.axis2.AxisFault)1 ConfigurationContext (org.apache.axis2.context.ConfigurationContext)1 AxisConfigurator (org.apache.axis2.engine.AxisConfigurator)1 ServiceInitializationException (org.pentaho.platform.api.engine.ServiceInitializationException)1 AbstractAxisConfigurator (org.pentaho.platform.plugin.services.webservices.AbstractAxisConfigurator)1 SystemSolutionAxisConfigurator (org.pentaho.platform.plugin.services.webservices.SystemSolutionAxisConfigurator)1