Package org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql

Examples of org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.JndiConnectionProvider.createConnection()


      {
        final JndiConnectionProvider connectionProvider = new JndiConnectionProvider();
        connectionProvider.setConnectionPath(jndiName);
        try
        {
          return connectionProvider.createConnection(realUser, realPassword);
        }
        catch (SQLException e)
        {
          throw new ReportDataFactoryException
              ("JNDI dataconnection was requested, but no connection could be established", e);
View Full Code Here


      {
        final JndiConnectionProvider connectionProvider = new JndiConnectionProvider();
        connectionProvider.setConnectionPath(jndiName);
        try
        {
          return connectionProvider.createConnection(realUser, realPassword);
        }
        catch (SQLException e)
        {
          throw new ReportDataFactoryException
              ("JNDI dataconnection was requested, but no connection could be established", e);
View Full Code Here

    final String pass = req.getParameter("password");

    JndiConnectionProvider con = new JndiConnectionProvider(jndi, user, pass);
    try
    {
      final Connection connection = con.createConnection(null, null);
      connection.close();
      resp.setContentType("text/plain");
      resp.setStatus(HttpServletResponse.SC_OK);
      final PrintWriter writer = resp.getWriter();
      writer.print("Success.");
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.