Package org.apache.axis2.context

Examples of org.apache.axis2.context.ConfigurationContextFactory




    public void testModuleConfigAtAxisConfig() {
        try {
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            ar = builder.buildConfigurationContext(repo).getAxisConfiguration();
            ModuleConfiguration moduleConfiguration =
                    ((AxisConfigurationImpl)ar).getModuleConfig(new QName("testModule"));
            assertNotNull(moduleConfiguration);
            Parameter para = moduleConfiguration.getParameter("testModulePara");
            assertNotNull(para);
View Full Code Here


    }


     public void testModuleConfigAtService() {
        try {
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            ar = builder.buildConfigurationContext(repo).getAxisConfiguration();


            ServiceDescription service = new ServiceDescription();
            service.setName(new QName("testService"));
            ar.addService(service);
View Full Code Here

        this.host = host;
        this.port = port;
        this.user = userid;
        this.password = password;
        try {
            ConfigurationContextFactory builder =
                new ConfigurationContextFactory();
            configurationContext = builder.buildConfigurationContext(dir);
        } catch (Exception e) {
            log.info(e.getMessage());
        }
        try {
            log.info("Sleeping for a bit to let the engine start up.");
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.buildConfigurationContext(args[0]);
            SimpleMailListener sas = new SimpleMailListener();
            TransportInDescription transportIn =
                configurationContext.getAxisConfiguration().getTransportIn(
                    new QName(Constants.TRANSPORT_MAIL));
            if (transportIn != null) {
View Full Code Here

    String repo ="./test-resources/deployment/ParaLockedRepo";



    protected void setUp() throws Exception {
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ar = builder.buildConfigurationContext(repo).getAxisConfiguration();
    }
View Full Code Here

    public TCPServer() {
    }

    public TCPServer(int port, String dir) throws AxisFault {
        try {
            ConfigurationContextFactory erfac = new ConfigurationContextFactory();
            this.configContext = erfac.buildConfigurationContext(
                    dir);
            Thread.sleep(3000);
            serversocket = new ServerSocket(port);
        } catch (DeploymentException e1) {
            throw new AxisFault(e1);
View Full Code Here

     * @throws AxisFault
     */
    private static ServiceContext assumeServiceContext(String repo) throws AxisFault {
        ConfigurationContext sysContext = null;
        if (ListenerManager.configurationContext == null) {
            ConfigurationContextFactory efac = new ConfigurationContextFactory();
            sysContext = efac.buildClientConfigurationContext(repo);
        } else {
            sysContext = ListenerManager.configurationContext;
        }

        //create new service
View Full Code Here

    public TCPServer() {
    }

    public TCPServer(int port, String dir) throws AxisFault {
        try {
            ConfigurationContextFactory erfac = new ConfigurationContextFactory();
            this.configContext = erfac.buildConfigurationContext(
                    dir);
            Thread.sleep(3000);
            serversocket = new ServerSocket(port);
        } catch (DeploymentException e1) {
            throw new AxisFault(e1);
View Full Code Here

     */
    public void init(ServletConfig config) throws ServletException {
        try {
            ServletContext context = config.getServletContext();
            String repoDir = context.getRealPath("/WEB-INF");
            ConfigurationContextFactory erfac =
                    new ConfigurationContextFactory();
            configContext =
                    erfac.buildConfigurationContext(repoDir);
            configContext.setProperty(Constants.CONTAINER_MANAGED,
                    Constants.VALUE_TRUE);
            configContext.setRootDir(new File(context.getRealPath("/WEB-INF")));
            lister = new ListingAgent(configContext);
            context.setAttribute(CONFIGURATION_CONTEXT, configContext);
View Full Code Here

   */
    public SimpleHTTPServer(String dir, int port,
      ThreadFactory pool) throws AxisFault {
        try {
            this.port = port;
            ConfigurationContextFactory erfac = new ConfigurationContextFactory();
            this.configurationContext = erfac.buildConfigurationContext(dir);
            // If a thread pool is not passed the thread pool from the config context
            // is used. If one is passed it is set on the config context.
          if (pool==null){
            pool = this.configurationContext.getThreadPool();
          } else {
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.