Package org.mortbay.jetty.plus

Examples of org.mortbay.jetty.plus.DefaultDataSourceService.addDataSource()


        cpds.setLoginTimeout( 10 );
        cpds.setUser( "SA" );
        cpds.setPassword( null );

        // Configure and bind DataSource to JNDI for user database
        dss.addDataSource( "jdbc/UserDatabase", cpds );
        container.server.addService( dss );
        dss.getDataSource( "jdbc/UserDatabase" );
       
        // Configure and bind DataSource to JNDI for group database
        dss.addDataSource( "jdbc/GroupDatabase", cpds );
View Full Code Here


        dss.addDataSource( "jdbc/UserDatabase", cpds );
        container.server.addService( dss );
        dss.getDataSource( "jdbc/UserDatabase" );
       
        // Configure and bind DataSource to JNDI for group database
        dss.addDataSource( "jdbc/GroupDatabase", cpds );
        container.server.addService( dss );
        dss.getDataSource( "jdbc/GroupDatabase" );
       
        System.out.println( "Configured datasources." );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.