Package org.apache.axis2.engine

Examples of org.apache.axis2.engine.AxisFault


                String serverName = (String)
                        messageContext.getProperty(SynapseConstants.Axis2Param.SYNAPSE_SERVER_NAME);

                if(serverName != null && messageContext instanceof Axis2MessageContext) {

                    AxisConfiguration configuration = ((Axis2MessageContext)messageContext).
                            getAxis2MessageContext().
                            getConfigurationContext().getAxisConfiguration();

                    String myServerName = getAxis2ParameterValue(configuration,
                            SynapseConstants.Axis2Param.SYNAPSE_SERVER_NAME);
View Full Code Here


                int index = 0;
                while (!finish) {
                    Thread.sleep(1000);
                    index++;
                    if (index > 10) {
                        throw new AxisFault("Server is shutdown as the Async response take too longs time");
                    }
                }
            } finally {
                call.close();
            }
View Full Code Here

        int index = 0;
        while (!finish) {
            Thread.sleep(1000);
            index++;
            if(index > 10 ){
                throw new AxisFault("Server is shutdown as the Async response take too longs time");
            }
        }
        call.close();
    }
View Full Code Here

            }
            ConfigurationContext er = erfac.buildConfigurationContext(file.getAbsolutePath());
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e1) {
                throw new AxisFault("Thread interuptted", e1);
            }

            ServerSocket serverSoc = null;
            serverSoc = new ServerSocket(Constants.TESTING_PORT);
            reciver = new SimpleHTTPServer(er, serverSoc);
View Full Code Here

    }

    public void addWorker(AxisWorker worker) throws AxisFault {
        if (shoutDown)
            throw new AxisFault("Thread Pool is Shutting Down");
        tasks.add(worker);
    }
View Full Code Here

            // Class erClass = Class.forName("org.apache.axis2.deployment.EngineContextFactoryImpl");
            ConfigurationContextFactory erfac = new ConfigurationContextFactory();
            this.configurationContext = erfac.buildConfigurationContext(dir);
            Thread.sleep(2000);
        } catch (Exception e1) {
            throw new AxisFault("Thread interuptted", e1);
        }
    }
View Full Code Here

        }
        while (!tasks.isEmpty()) {
            try {
                Thread.sleep(SLEEP_INTERVAL);
            } catch (InterruptedException e) {
                throw new AxisFault("Error while safeShutDown", e);
            }
        }
        forceShutDown();

    }
View Full Code Here

            StAXBuilder builder = new StAXSOAPModelBuilder(reader);
            msgCtx.setEnvelope((SOAPEnvelope) builder.getDocumentElement());
            AxisEngine engine = new AxisEngine(confContext);
            engine.receive(msgCtx);
        } catch (XMLStreamException e) {
            throw new AxisFault(e);
        } catch (FactoryConfigurationError e) {
            throw new AxisFault(e);
        }
    }
View Full Code Here

            LocalTransportReceiver localTransportReceiver = new LocalTransportReceiver();
            localTransportReceiver.processMessage(in, msgContext.getTo());
            in.close();
            out.close();
        } catch (IOException e) {
            throw new AxisFault(e);
        }
    }
View Full Code Here

            configurationContext =
                erfac.buildConfigurationContext(file.getAbsolutePath());
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e1) {
                throw new AxisFault("Thread interuptted", e1);
            }
            configurationContext.getAxisConfiguration().engageModule(
                new QName("addressing"));
            reciver =
                new TCPServer(UtilServer.TESTING_PORT, configurationContext);
View Full Code Here

TOP

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

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.