Package org.jboss.soa.esb.common.tests

Examples of org.jboss.soa.esb.common.tests.MockDataSource


    } catch (IOException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    }
    Context ctx;
    MockDataSource mds = new MockDataSource(this);
    try {
      ctx = new InitialContext();
      ctx.rebind("datasource", mds);
      ctx.rebind("path", repository);
    } catch (NamingException e) {
View Full Code Here


    pm.setProperty(Environment.MSG_STORE_DB_DATASOURCE_NAME, "datasource");
    pm.setProperty(Environment.MSG_STORE_DB_CONN_MANAGER, JEE_CONNECTIONMGR_CLASS);
  
      try {
        ctx = new InitialContext();
        MockDataSource mds = new MockDataSource(this);
        String dataSourcename = Configuration.getStoreDBDatasourceName();
        ctx.rebind(dataSourcename, mds);
       
      } catch (NamingException e) {
        e.printStackTrace();
View Full Code Here

    pm.setProperty(Environment.MSG_STORE_DB_POOL_INITIAL_SIZE, "1");
    pm.setProperty(Environment.MSG_STORE_DB_POOL_TIMEOUT_MILLIS, "20000");
   
      try {
        ctx = new InitialContext();
        MockDataSource mds = new MockDataSource(this);
        String dataSourcename = Configuration.getStoreDBDatasourceName();
        ctx.rebind(dataSourcename, mds);
       
      } catch (NamingException e) {
        e.printStackTrace();
View Full Code Here

    pm.setProperty(Environment.MSG_STORE_DB_DATASOURCE_NAME, "blah");
   
        // Grab the connection created and do a simple Query - we expect a result
      try {
        ctx = new InitialContext();
        MockDataSource mds = new MockDataSource(this);
        String dataSourcename = Configuration.getStoreDBDatasourceName();
        ctx.rebind(dataSourcename, mds);

      } catch (NamingException e) {
      logger.debug("", e);
View Full Code Here

    pm.setProperty(Environment.MSG_STORE_DB_CONN_MANAGER, TEST_STRING);
  
    // Grab the connection created and do a simple Query - we expect a result
      try {
        ctx = new InitialContext();
        MockDataSource mds = new MockDataSource(this);
        String dataSourcename = Configuration.getStoreDBDatasourceName();
        ctx.rebind(dataSourcename, mds);
       
      } catch (NamingException e) {
      logger.debug("", e);
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.common.tests.MockDataSource

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.