Total Pageviews

Tuesday, October 23, 2018

Code to fetch DB connection from weblogic datasource

Context initialContext = new InitialContext();
            datasource =
                    (DataSource)initialContext.lookup("jdbc/operationsDB");
            con = datasource.getConnection();
            stmt = con.createStatement();

No comments:

Post a Comment