Package org.jboss.soa.esb.helpers.persist

Examples of org.jboss.soa.esb.helpers.persist.SimpleDataSource


        try
        {
          Class.forName(mDbDriver);
            server = HsqldbUtil.startHsqldb(_dbFileName, "defaultReplyEprDB");
            _dbConn = new JdbcCleanConn
          (new SimpleDataSource(mDbDriver,mDbUrl,mDbUsername,mDbPassword));
            createMessageTable("foo");
            createMessageTable("foo_reply_table");
        }
        catch (Exception e)
        {
View Full Code Here


    di.setSqlFiles(TEST_STRING);
    assertEquals(di.getSqlFiles(), TEST_STRING);
  }
 
    public void testInitialization() {
      SimpleDataSource simpleDS = new SimpleDataSource(mDbDriver, mDbUrl, mDbUsername, mDbPassword);
            // Grab the connection created and do a simple Query - we expect a result
      try {
        Context ctx = new InitialContext();
        ctx.rebind(JNDI_DATASOURCE, simpleDS);
   
View Full Code Here

     */
    protected JdbcCleanConn getDbConn() {
      DataSource oDS = null;
        if (null == _dbConn) {
          if (_datasource == null) {
            oDS = new SimpleDataSource(_driver, _url, _user,
                    _password);
          } else {
        InitialContext initContext;
        try {
          initContext = new InitialContext();
View Full Code Here

  /*
   * extracted this method to simplify testing. DanielB
   */
  protected JdbcCleanConn createJdbcCleanConnection()
  {
    return new JdbcCleanConn(new SimpleDataSource(m_sDriver, m_sURL, m_sUser, m_sPwd));
  }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.helpers.persist.SimpleDataSource

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.