Here we are going to see Java code to connect to OIM 11G R2 and do other operations.
Following code does:
Refer Java API's for OIM 11g R2 doc in the following URL:
http://docs.oracle.com/cd/E27559_01/apirefs.1112/e28159/toc.htm
Need following basic library jar files:
Common-logging.jar and spring.jar available under/Oracle_IDM1/server/client in side zip file oimclient.zip, extract oimclient.zip and add lib folder and oimclient.jar to class path as shown below.
Generate wlfulclient.jar by following below steps, after generation it need to be added to classpath .
Following code does:
- Create User
- Lock User
- Unlock User
- Disable User
- Enable User
- Reset Password
Refer Java API's for OIM 11g R2 doc in the following URL:
http://docs.oracle.com/cd/E27559_01/apirefs.1112/e28159/toc.htm
Need following basic library jar files:
- commons-logging.jar
- spring.jar
- oimclient.jar
- jrf-api.jar
- wlfullclient.jar
Common-logging.jar and spring.jar available under
Generate wlfulclient.jar by following below steps, after generation it need to be added to classpath .
1) Create project in Jdeveoper and go to Properties, under properties go to Libraries and classpath and add jar files specified above.
2) Write code as shown below.
- Create User
- Lock User
- Unlock User
- Disable User
- Enable User
- Reset Password
3) To initialize OIM connection following code will be used:
4) To Login to OIM using any user use:
5) To perform user operations initialize userManagement :
6) Using other Java API's(http://docs.oracle.com/cd/E27559_01/apirefs.1112/e28159/toc.htm) other operations can be performed.