Friday, 9 June 2017

OIM DB Connection in Code

Some times you may need to connect to OIM DB inside the code, below is the sample code which helps you on the same..


private Connection getOIMConnection() {
             Connection oimConnection = null;
             try {
                    oimConnection = Platform.getOperationalDS().getConnection();
             } catch (SQLException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
             }
             return oimConnection;


       }

No comments:

Post a Comment