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.
I am getting this error when calling stored procesdure and updating records in table:
ReplyDeleteentering this method
UsernamePasswordLoginModule.initialize(), debug enabled
UsernamePasswordLoginModule.login(), username xelsysadm
UsernamePasswordLoginModule.login(), URL t3://lctcvd7023.merck.com:14000
Jan 17, 2014 11:39:16 AM com.sun.corba.se.impl.encoding.CDRInputStream_1_0 read_value
WARNING: "IOP00810211: (MARSHAL) Exception from readValue on ValueHandler in CDRInputStream"
org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 211 completed: Maybe
Hi Singh,
ReplyDeleteFirst thing is are you able to telnet to port 14000 from where you are executing this code?
Thanks
we want to trigger emails to user once they reset there challenge questions succesfully from oim.Do we have an API for this?
ReplyDelete