1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | package com.massiveGaze.connection; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import com.massiveGaze.properties.OIMProfileReader; /** * * */ public class DataSource { private static Connection connectionObject = null; private static OIMProfileReader properties=null; static String JDBC_DRIVER = null; static String DB_URL = null; static String USER = null; static String PASS = null; private static Connection makeConnection() { try { properties = new OIMProfileReader(); JDBC_DRIVER=properties.getString("operationsDB.directDBdriver"); DB_URL=properties.getString("operationsDB.jdbcUrl"); USER=properties.getString("operationsDB.user"); PASS=properties.getString("operationsDB.password"); Class.forName(JDBC_DRIVER); System.out.println("Connecting to database..."); System.out.println("DB User Name -> "+DB_URL); System.out.println("DB URL -> "+USER); connectionObject = DriverManager.getConnection(DB_URL, USER, PASS); } catch (SQLException se) { se.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } return connectionObject; } public static synchronized Connection getConnection() { if (connectionObject == null) { connectionObject = makeConnection(); } return connectionObject; } public static void closeConnection() { System.out.println("Closing to database connection ..."); try { properties=null; JDBC_DRIVER=null; DB_URL=null; USER=null; PASS=null; if (connectionObject != null) connectionObject.close(); } catch (SQLException se) { se.printStackTrace(); } } public static void main(String args[]){ getConnection(); closeConnection(); } } |
Oracle Identity Manager (OIM R2PS2/PS3/12C) is a highly flexible and scalable enterprise identity administration system that provides operational and business efficiency by providing centralized administration & complete automation of identity and user provisioning events across enterprise as well as extranet applications.
OIM DB Connection/ Data Source connection
Subscribe to:
Posts (Atom)
About OIM
Oracle Identity Management enables organizations to effectively manage the end - to - end life - cycle of user ide...
Popular Posts
-
OIM API's Sample Code : Videos: Massive Gaze Videos Connection Related API's : OIM DB Connection/ Data Source connection ...
-
Videos: Massive Gaze Videos 1. Basic OIM Information 2. MDS Export/Import 3. Steps For R2PS2 / R2PS3 Custom Pre-processor Ev...
-
Videos: Massive Gaze Videos 1. Query to get OIM Provsioned/provisioning Account details 2. Query to get usr keys For Rejected / ...
No comments:
Post a Comment