Package com.softwareag.tamino.db.api.connector

Examples of com.softwareag.tamino.db.api.connector.TaminoDataSource


        return model;
    }

    protected TConnection getTConnection() throws NamingException, TServerNotAvailableException {
        InitialContext ic = new InitialContext();
        TaminoDataSource tds = (TaminoDataSource) ic.lookup(jndiReference);
        TConnection con =  tds.getConnection();
        return con;
    }
View Full Code Here


    public void setJndiReference(String pJndiReference) {
        jndiReference = pJndiReference;
    }

    protected TConnection getTConnection() throws PMException {
      TaminoDataSource tds;
      try {
        InitialContext ic = new InitialContext();
        tds = (TaminoDataSource) ic.lookup(jndiReference);
      } catch (NamingException e) {
        throw new PMException(e);
      }
      try {
      return tds.getConnection();
    } catch (TServerNotAvailableException e) {
      throw new PMException(e);
    }
    }
View Full Code Here

TOP

Related Classes of com.softwareag.tamino.db.api.connector.TaminoDataSource

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.