Package org.apache.axis2.context

Examples of org.apache.axis2.context.ConfigurationContextFactory


        if (args.length > 3) repository = true;

        try {
            ServiceClient serviceClient;
            if (repository) {
                ConfigurationContextFactory fac =
                        new ConfigurationContextFactory();
                ConfigurationContext configContext =
                        fac.createConfigurationContextFromFileSystem(args[3]);
                serviceClient = new ServiceClient(configContext, null);
            } else {
                serviceClient = new ServiceClient();
            }
View Full Code Here


            // step 2 - set up the call object
            // the wsa:To

            ServiceClient serviceClient;
            if (repository) {
                ConfigurationContextFactory fac =
                        new ConfigurationContextFactory();
                ConfigurationContext configContext =
                        fac.createConfigurationContextFromFileSystem(args[3]);
                serviceClient = new ServiceClient(configContext, null);
            } else {
                serviceClient = new ServiceClient();
            }
View Full Code Here

     *
     * @throws AxisFault
     */
    protected void assumeServiceContext(String clientHome) throws AxisFault {
        ConfigurationContext configurationContext =
                new ConfigurationContextFactory().createConfigurationContextFromFileSystem(clientHome);
        AxisService axisService =
                configurationContext.getAxisConfiguration().getService(ANONYMOUS_SERVICE);

        if (axisService == null) {

View Full Code Here

        }
    }

    public TCPServer(int port, String dir) throws AxisFault {
        try {
            ConfigurationContextFactory erfac = new ConfigurationContextFactory();

            this.configContext = erfac.createConfigurationContextFromFileSystem(dir);
            Thread.sleep(3000);
            serversocket = new ServerSocket(port);
        } catch (DeploymentException e1) {
            throw new AxisFault(e1);
        } catch (InterruptedException e1) {
View Full Code Here

     */
    public ServiceClient(ConfigurationContext configContext,
                         AxisService axisService) throws AxisFault {
        // create a config context if needed
        this.configContext = (configContext != null) ? configContext
                : new ConfigurationContextFactory()
                .createConfigurationContextFromFileSystem(null);

        // save the axisConfig and service
        this.axisConfig = this.configContext.getAxisConfiguration();
        this.axisService = (axisService != null) ? axisService
View Full Code Here

     */
    public ServiceClient(ConfigurationContext configContext, URL wsdlURL,
                         QName wsdlServiceName, String portName) throws AxisFault {
        // create a config context if needed
        this.configContext = (configContext != null) ? configContext
                : new ConfigurationContextFactory()
                .createConfigurationContextFromFileSystem(null);
        try {
            this.axisConfig = this.configContext.getAxisConfiguration();
            axisService = ClientUtils.creatAxisService(wsdlURL, wsdlServiceName, portName, options);
            // add the service to the config context if it isn't in there already
View Full Code Here

    public SimpleJMSListener(String repositoryDirectory, HashMap connectorMap, HashMap cfMap,
                             String destination, String username, String password,
                             boolean doThreads)
            throws Exception {
        ConfigurationContextFactory erfac = new ConfigurationContextFactory();

        this.configurationContext = erfac.createConfigurationContextFromFileSystem(repositoryDirectory);
        this.doThreads = doThreads;
        this.properties = new HashMap(connectorMap);
        this.properties.putAll(cfMap);
        this.destination = destination;
    }
View Full Code Here

    private WSDLDescription description;

    public WSDLMEPClientBuilder(String clienthome) throws AxisFault {
        try {
            configurationContext =
                    new ConfigurationContextFactory().createConfigurationContextFromFileSystem(clienthome);
        } catch (DeploymentException e) {
            throw new AxisFault(e);
        }
    }
View Full Code Here

        this.port = port;
        this.user = userid;
        this.password = password;

        try {
            ConfigurationContextFactory builder = new ConfigurationContextFactory();

            configurationContext = builder.createConfigurationContextFromFileSystem(dir);
        } catch (Exception e) {
            log.info(e.getMessage());
        }

        try {
View Full Code Here

     */
    public static void main(String args[]) throws AxisFault {
        if (args.length != 1) {
            log.info("java SimpleMailListener <repository>");
        } else {
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            ConfigurationContext configurationContext =
                    builder.createConfigurationContextFromFileSystem(args[0]);
            SimpleMailListener sas = new SimpleMailListener();
            TransportInDescription transportIn =
                    configurationContext.getAxisConfiguration().getTransportIn(
                            new QName(Constants.TRANSPORT_MAIL));

View Full Code Here

TOP

Related Classes of org.apache.axis2.context.ConfigurationContextFactory

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.