Package org.wso2.carbon.core.transports

Examples of org.wso2.carbon.core.transports.TransportService


            log.warn("Initial factory class cannot be found");
        }
    }

    public void updateGloballyDefinedOutParameters(TransportParameter[] outParams) throws Exception {
        TransportService trpService = JMSServiceHolder.getInstance().getService();
        if (outParams == null || trpService.dependenciesAvailable(outParams)) {
            trpService.updateGlobalTransportParameters(outParams, true, getConfigContext());
        } else {
            log.warn("Initial factory class cannot be found");
        }
    }
View Full Code Here


   * AxisConfiguration and will update the registry.
   *
   * @throws Exception on error
   */
  public void disableTransportListener() throws Exception {
    TransportService trpService = JMSServiceHolder.getInstance().getService();
        trpService.disableTransport(true, getAxisConfig());
  }
View Full Code Here

    TransportService trpService = JMSServiceHolder.getInstance().getService();
        trpService.disableTransport(true, getAxisConfig());
  }

    public void disableTransportSender() throws Exception {
        TransportService trpService = JMSServiceHolder.getInstance().getService();
        trpService.disableTransport(false, getAxisConfig());
    }
View Full Code Here

   * @throws Exception on error
   */
  public void updateServiceSpecificInParameters(String serviceName,
                                                  TransportParameter[] inParams) throws Exception {

        TransportService trpService = JMSServiceHolder.getInstance().getService();
        if (trpService.dependenciesAvailable(inParams)) {
            trpService.updateServiceLevelTransportParameters(serviceName, inParams,
                    true, getConfigContext());
        } else {
            log.warn("Initial factory class cannot be found");
        }
    }
View Full Code Here

   * @throws Exception on error
   */
    public void updateServiceSpecificOutParameters(String serviceName,
                                                   TransportParameter[] outParams) throws Exception {

        TransportService trpService = JMSServiceHolder.getInstance().getService();
        if (outParams == null || trpService.dependenciesAvailable(outParams)) {
            trpService.updateServiceLevelTransportParameters(serviceName, outParams,
                    false, getConfigContext());
        } else {
            log.warn("Initial factory class cannot be found");
        }
    }
View Full Code Here

            log.warn("Initial factory class cannot be found");
        }
    }

    public TransportParameter[] getGloballyDefinedInParameters() throws Exception {
        TransportService trpService = JMSServiceHolder.getInstance().getService();
        return trpService.getGlobalTransportParameters(true, getAxisConfig());
    }
View Full Code Here

        TransportService trpService = JMSServiceHolder.getInstance().getService();
        return trpService.getGlobalTransportParameters(true, getAxisConfig());
    }

    public TransportParameter[] getGloballyDefinedOutParameters() throws Exception {
        TransportService trpService = JMSServiceHolder.getInstance().getService();
        return trpService.getGlobalTransportParameters(false, getAxisConfig());
    }
View Full Code Here

     * @param listener true for JMS listener and false for JMS sender
     * @throws Exception on error
     */
    public void addConnectionFactory(TransportParameter parameter, String service,
                                       boolean listener) throws Exception {
        TransportService trpService = JMSServiceHolder.getInstance().getService();
        trpService.addTransportParameter(parameter, listener, getConfigContext());
    }
View Full Code Here

     * @param listener true for JMS listener and false for JMS sender
     * @throws Exception on error
     */
    public void removeConnectionFactory(String factoryName, String service,
                                        boolean listener) throws Exception {
        TransportService trpService = JMSServiceHolder.getInstance().getService();
        trpService.removeTransportParameter(factoryName, listener, getConfigContext());
    }
View Full Code Here

      }
    }
  }

    public void removeTransport(String name) {
        TransportService trpService = transportStore.remove(name);
        if (trpService != null && log.isDebugEnabled()) {
            log.debug(name + " transport removed from the transport store and will not be " +
                    "available via the management console");
        }
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.core.transports.TransportService

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.