Package org.mortbay.jetty.plus.naming

Examples of org.mortbay.jetty.plus.naming.Resource


    String jdbcJndiName = "jdbc/dataSource";
    h2DataSource.getMethod("setURL", new Class[] {String.class}).invoke(o, new Object[] {jdbcUrl});
    h2DataSource.getMethod("setUser", new Class[] {String.class}).invoke(o, new Object[] {jdbcUsername});
    h2DataSource.getMethod("setPassword", new Class[] {String.class}).invoke(o, new Object[] {jdbcPassword});
   
    Resource jdbcResource = new Resource(jdbcJndiName, o);
   
    alfrescoServer.start();
    boolean entered = false;
   
    while(server.isStarted()
View Full Code Here


    @SuppressWarnings("unused")
    PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(factory,pool,null,null,false,true);
    DataSource poolingDataSource = new PoolingDataSource(pool);


    new Resource(JPAPersistenceManager.WIDGET_DATABASE_JNDI_DATASOURCE_NAME, poolingDataSource);
  }
View Full Code Here

            @SuppressWarnings("unused")
      PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(factory,pool,null,null,false,true);
            DataSource poolingDataSource = new PoolingDataSource(pool);
           
           
            new Resource(JPAPersistenceManager.WIDGET_DATABASE_JNDI_DATASOURCE_NAME, poolingDataSource);
        } else if (persistenceManagerType.equals(PERSISTENCE_MANAGER_TYPE_JCR)) {
            logger.info("Configuring JCR persistence manager");

            // setup repository directory and derby logging properties
            File repositoryDirFile = new File("widgetRepository");
            if (!repositoryDirFile.exists()) {
                repositoryDirFile.mkdirs();
            }
            String derbyLog = repositoryDirFile.getAbsolutePath()+File.separator+"derby.log";
            System.setProperty("derby.stream.error.file", derbyLog);

            // setup Jackrabbit JCR repository JNDI resource
            String repositoryConfig = repositoryDirFile.getAbsolutePath()+File.separator+"repository.xml";
            Repository repository = new TransientRepository(repositoryConfig, repositoryDirFile.getAbsolutePath());
            new Resource(JCRPersistenceManager.WIDGET_REPOSITORY_JNDI_REPOSITORY_NAME, repository);
        }

        // configure embedded jetty web application handler
    server.addHandler(context);
   
View Full Code Here

    String jdbcJndiName = "jdbc/dataSource";
    h2DataSource.getMethod("setURL", new Class[] {String.class}).invoke(o, new Object[] {jdbcUrl});
    h2DataSource.getMethod("setUser", new Class[] {String.class}).invoke(o, new Object[] {jdbcUsername});
    h2DataSource.getMethod("setPassword", new Class[] {String.class}).invoke(o, new Object[] {jdbcPassword});
   
    Resource jdbcResource = new Resource(jdbcJndiName, o);
   
    alfrescoServer.start();
    boolean entered = false;
   
    while(alfrescoServer.isStarted()
View Full Code Here

    System.setProperty("derby.stream.error.file", derbyLog);

    // setup Jackrabbit JCR repository JNDI resource
    String repositoryConfig = repositoryDirFile.getAbsolutePath()+File.separator+"repository.xml";
    Repository repository = new TransientRepository(repositoryConfig, repositoryDirFile.getAbsolutePath());
    new Resource(JCRPersistenceManager.WIDGET_REPOSITORY_JNDI_REPOSITORY_NAME, repository);
   
  }
View Full Code Here

    @SuppressWarnings("unused")
    PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(factory,pool,null,null,false,true);
    DataSource poolingDataSource = new PoolingDataSource(pool);


    new Resource(JPAPersistenceManager.WIDGET_DATABASE_JNDI_DATASOURCE_NAME, poolingDataSource);
  }
View Full Code Here

TOP

Related Classes of org.mortbay.jetty.plus.naming.Resource

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.