I have been playing around with the Oracle Identity Manager product for some time now, but this past month a new comer to the Oracle block of IdM products, Oracle Identity Analytics or Sun Role Manager got included in my current office project. As usual, the office guys will nag a thousand times before giving resources like RAM and harddisk for the simple reason that I want to learn/hack some more. Nevertheless, I got one server on Amazon EC2 for this experiment. Thank you Amazon!
I got the base OIM 9.1.0.1 (what crappy version nomenclature!) or what the Oracle guys call OIM 10g and the OIA 11.*.5 or OIA 11gR5 on the EC2 instance running in a days duration. But sadly, I realized that OIM needs to be upgraded, before I can even start integration. So two more upgrades and I am at OIM 9.1.0.2 BP17a. Phew! what a pain in the ass.
Now back to getting to know OIA or Oracle Identity Analytics. During the installation I observed, that product was built with Spring 2.x and hasn't been changed since. Spring 2.x is a ancient release, and I guess most of the people at either Sun / Oracle haven't bothered to upgrade it.
Back to the work now.
My requirement is --> A simple hello world scheduler, that build on nothing that OIA is providing, but simply uses the Spring's native features to get started. My first go was to get a Quartz based scheduler class and plug it in along with the other jobs that OIA itself has. Apparently, I still am not able to get this configured properly. I tried tweaking the scheduling-context.xml and jobs.xml with my simple helloworld style classes, but it just did not work. So much pain for a hello world approach, not justified at all!
Spring also provides a JDK Timer based scheduler, and apparently that was all that I need. So here is what I have now
Create a simple timer class as shown here:
I created a helloworld.xml containing my spring beans. Its shown below:
It has three beans
1. The job
2. The trigger
3. The trigger manager
More official documentation on this is available here
Now to integrate it in the OIA webapp, all I do is add helloworld.xml to the web.xml as a parameter. This is shown below:
Restart server and I can see it in the weblogic logs :)
The eclipse project for this here
More on this coming soon
I got the base OIM 9.1.0.1 (what crappy version nomenclature!) or what the Oracle guys call OIM 10g and the OIA 11.*.5 or OIA 11gR5 on the EC2 instance running in a days duration. But sadly, I realized that OIM needs to be upgraded, before I can even start integration. So two more upgrades and I am at OIM 9.1.0.2 BP17a. Phew! what a pain in the ass.
Now back to getting to know OIA or Oracle Identity Analytics. During the installation I observed, that product was built with Spring 2.x and hasn't been changed since. Spring 2.x is a ancient release, and I guess most of the people at either Sun / Oracle haven't bothered to upgrade it.
Back to the work now.
My requirement is --> A simple hello world scheduler, that build on nothing that OIA is providing, but simply uses the Spring's native features to get started. My first go was to get a Quartz based scheduler class and plug it in along with the other jobs that OIA itself has. Apparently, I still am not able to get this configured properly. I tried tweaking the scheduling-context.xml and jobs.xml with my simple helloworld style classes, but it just did not work. So much pain for a hello world approach, not justified at all!
Spring also provides a JDK Timer based scheduler, and apparently that was all that I need. So here is what I have now
Create a simple timer class as shown here:
I created a helloworld.xml containing my spring beans. Its shown below:
It has three beans
1. The job
2. The trigger
3. The trigger manager
More official documentation on this is available here
Now to integrate it in the OIA webapp, all I do is add helloworld.xml to the web.xml as a parameter. This is shown below:
Restart server and I can see it in the weblogic logs :)
The eclipse project for this here
More on this coming soon