How to Deploy the Scheduler Task OIM 11g

Hi.
I have deployed the scheduler task in OIM 11g and also I have configured the Scheduler task in OIM Admin Console. The Java Scheduler class was not invoked when I run the Scheduler task.
I have done the following configuration to develop and deploy the scheduler task in OIM.
1) Developing the Java Class File.
package edu.sfsu.oim11g.scheduler;
import java.util.HashMap;
import oracle.iam.scheduler.vo.TaskSupport;
import edu.sfsu.oim11g.logger.SfsuLogger;
public class SfsuTrustedSourceReconciliation extends TaskSupport {
     //private Logger logger= Logger.getLogger(SfsuTrustedSourceReconciliation.class);
     private SfsuLogger logger= new SfsuLogger("SFSU-LOGGER");
     private String className=this.getClass().getCanonicalName();
     private String methodName="";
     public SfsuTrustedSourceReconciliation() {
          methodName="SfsuTrustedSourceReconciliation";
          debug("SfsuTrustedSourceReconciliation() Called");
     @Override
     public void execute(HashMap arg0) throws Exception {
          // TODO Auto-generated method stub
          methodName="execute";
          debug("SfsuTrustedSourceReconciliation Arguments "+arg0);
     @Override
     public HashMap getAttributes() {
          // TODO Auto-generated method stub
          return null;
     @Override
     public void setAttributes() {
          // TODO Auto-generated method stub
     private void debug(Object message)
          logger.info(className+" : "+methodName+" : "+message);
2) Custom Scheduler XML File
This file is located in
/home/oracle/confg_files/schedulers/db/SfsuTrustedSourceReconciliation.xml
<scheduledTasks xmlns="http://xmlns.oracle.com/oim/scheduler">
     <task>
     <name>SfsuTrustedSourceReconciliation</name>
          <class>edu.sfsu.oim11g.scheduler.SfsuTrustedSourceReconciliation</class>
          <description>Reconciliation IDSync Data</description>
          <retry>5</retry>
          <parameters>
               <string-param required="true" encrypted="false" helpText="Source Data Source">Source Resource Data Source Name</string-param>
               <string-param required="true" encrypted="false" helpText="Config Data Source">Config Resource Data Source Name</string-param>
               <string-param required="true" encrypted="false" helpText="Reconciliation Type is Full Or Cincremental. Default is Incremental">Reconciliation Type</string-param>
               <number-param required="true" encrypted="false" helpText="Max Records" >Max Records</number-param>
          </parameters>
     </task>
</scheduledTasks>
3) Plugin File Configuration.
<?xml version="1.0" encoding="UTF-8"?>
<oimplugins>
<plugins pluginpoint="oracle.iam.platform.kernel.spi.EventHandler">
<plugin pluginclass="edu.sfsu.oim11g.eventhandlers.SfsuPostProcessEventHandler" version="1.0" name="SfsuPostprocessExtension"/>
</plugins>
<plugins pluginpoint="oracle.iam.scheduler.vo.TaskSupport">
<plugin pluginclass="edu.sfsu.oim11g.scheduler.SfsuTrustedSourceReconciliation" version="1.0" name="SfsuTrustedSourceReconciliation"/>
</plugins>
</oimplugins>
The event handler is successfully deployed and working fine without any issue.
4) making the scheduler jar file.
5) Making the scheduler zip with the following directory format.
plugin.xml
lib/scheduler.jar
6) Registering the Schedule task and event handler as a Plugin.
ant -f pluginregistration.xml register
7) Importing the SfsuTrustedSourceReconciliation.xml file into the MDS.
7.1) weblogic.properties
wls_servername=oim_server1
application_name=oim
metadata_from_loc=/home/oracle/configfiles/schedulers
7.2) Running the weblogicImportMetadata.sh file
It imported the SfsuTrustedSourceReconciliation.xml file into the MDS Schema and it is available in the MDS_PATH table in MDS schema
Path_Name : SfsuTrustedSourceReconciliation.xml
PATH_FULL : /db/SfsuTrustedSourceReconciliation.xml
8) Imported the EventHandlers.xml file into the MDS Schema.
9) Run the PurgeCache.sh file
10) Restarted the OIM Server.
11) Loggin into the OIM Admin Console and Created the Scheduler job based on the SfsuTrustedSourceReconciliation listed in the scheduler.
12) Run the Scheduler job and log file entries are not logged into the log file. My Log File Configuration
<log_handler name='sfsu-handler' level='FINEST' class='oracle.core.ojdl.logging.ODLHandlerFactory'>
<property name='logreader:' value='off'/>
<property name='path' value='/u01/app/wl-10.3.5.0/Oracle/Middleware/user_projects/domains/oim_domain/servers/oim_server1/logs/sfsu-connector.log'/>
<property name='format' value='ODL-Text'/>
<property name='useThreadName' value='true'/>
<property name='locale' value='en'/>
<property name='maxFileSize' value='5242880'/>
<property name='maxLogSize' value='52428800'/>
<property name='encoding' value='UTF-8'/>
</log_handler>
<logger name="SFSU-LOGGER" level="FINEST" useParentHandlers="false">
<handler name="sfsu-handler"/>
<handler name="console-handler"/>
</logger>
Is there any special configuration Do i need to do invoke my Scheduler Java Class File.
Help is Greatly Appreciated.

Seems like you did it all right but just piece which if you can modify and test. The plugin.xml has two artifacts eventhandler and the schduler. Can you try creating separate plugin.xml with one for the scheduler zipped up with /lib/scheduleClass.jar and test it?
Just deregister everything before trying it and let us know how it goes.
Also the logger as I see is a custom logger, so it is extending the OOTB Logger? Just put some sysouts in the code and check for those in the server out file to be sure.
Edited by: bbagaria on Jul 22, 2011 5:15 PM

Similar Messages

  • How to Deploy the Event Handlers OIM 11g

    Hi
    I have developed the code for post process event handler using OIM 11 G API. The OIM not invoking the EventHandlers while updating the users attribute or creating the users attribute.
    I have done the following task to develop and deploy the OIM 11g Event handlers. They are
    1) Implementing the PostProcessHandler interface and provide the implementation of execute method.
    Sample Class
    public class SamplePostProcessEventHandler implements PostProcessHandler {
         private Logger logger=Logger.getLogger("TEST-LOGGER");
         public SfsuPostProcessEventHandler()
              logger.debug("Invoking Event Handler Plugin");
         @Override
         public boolean cancel(long arg0, long arg1,
                   AbstractGenericOrchestration arg2) {
              // TODO Auto-generated method stub
              return false;
         @Override
         public void compensate(long arg0, long arg1,
                   AbstractGenericOrchestration arg2) {
              // TODO Auto-generated method stub
         @Override
         public EventResult execute(long processid, long eventid, Orchestration orchestration) {
              // TODO Auto-generated method stub
              logger.debug("Operation "+orchestration.getOperation());
              logger.debug("Parameters "+orchestration.getInterEventData());
              logger.debug("Parameters "+orchestration.getParameters());
              EventResult result=new EventResult();
              return result;
         @Override
         public BulkEventResult execute(long arg0, long arg1, BulkOrchestration arg2) {
              // TODO Auto-generated method stub
              return null;
         @Override
         public void initialize(HashMap<String, String> arg0) {
              // TODO Auto-generated method stub
    2) Create the Jar File SamplePostProcessEventHandler.jar
    3) Create the Plugin.xml file
    Sample File
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins>
    <plugins pluginpoint="oracle.iam.platform.kernel.spi.EventHandler">
    <plugin pluginclass="test.eventhandlers.SamplePostProcessEventHandler" version="1.0" name="SamplePostProcessEventHandler">
    </plugin>
    </plugins>
    </oimplugins>
    4) Create the directory lib and copy the SamplePostProcessEventHandler.jar file into this directory
    5) Creating the Zip file with the following directory structure.
    plugin.xml
    lib/SamplePostProcessEventHandler.jar
    6) Register the plugin
    ant -f pluginregistration.xml register
    7) Creating the Custom Events xml file called EventHandlers.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <eventhandlers>
    <action-handler class="test.eventhandlers.SamplePostProcessEventHandler" entity-type="User" operation="CREATE" name="SamplePostProcessEventHandler" stage="postprocess" order="LAST" sync="TRUE"/>
    <action-handler class="test.eventhandlers.SamplePostProcessEventHandler" entity-type="User" operation="MODIFY" name="SamplePostProcessEventHandler" stage="postprocess" order="LAST" sync="TRUE"/>
    </eventhandlers>
    8) Importing the Above XML into the MDS Schema Using the weblogicImportMetadata.sh file
    Directory Structure of the Event Handler Schema File
    /home/oracle/eventhandler/db/EventHandlers.xml
    weblogic.properties file parameters
    wls_servername=oim_server1
    application_name=oim
    metadata_from_loc=/home/oracle/eventhandler
    9) Finnally Running the PurgeCache.sh All
    10) Restarted the OIM Server.
    11) Testing
    I have logged into the OIM Admin Console >> Search the User > Update the First Name. The event handlers are not invoked any create or update operation. I am not able to see the log entries into the log file.
    My Log Entry Configuration.
    log File Configuration :
    /u01/app/wl-10.3.5.0/Oracle/Middleware/user_projects/domains/oim_domain/config/fmwconfig/servers/oim_server1/logging.xml
    <log_handler name='test-handler' level='FINEST' class='oracle.core.ojdl.logging.ODLHandlerFactory'>
    <property name='logreader:' value='off'/>
    <property name='path' value='/u01/app/wl-10.3.5.0/Oracle/Middleware/user_projects/domains/oim_domain/servers/oim_server1/logs/test-event.log'/>
    <property name='format' value='ODL-Text'/>
    <property name='useThreadName' value='true'/>
    <property name='locale' value='en'/>
    <property name='maxFileSize' value='5242880'/>
    <property name='maxLogSize' value='52428800'/>
    <property name='encoding' value='UTF-8'/>
    <logger name="TEST-LOGGER" level="FINEST" useParentHandlers="false">
    <handler name="test-handler"/>
    <handler name="console-handler"/>
    </logger>
    Is there anything is missing while deploying the event handlers.
    Help is Greatly appreciated.

    Change as per the following :
    1. Put the event hander in the /home/oracle/eventhandler /metadata/metadata directory and
    2. Change the following in the weblogic properties
    application_name=OIMMetadata
    metadata_from_loc to =/home/oracle/eventhandler/metadata
    This will work.

  • Modify  Schedule Task - OIM 11g

    Hello Experts,
    I have created a custom schedule task and deployed it in OIM11g and it works. Now I want to modify the deployed schedule task (add some more scheduled task parameters). How to do that? Can you assist?
    I tried the following but its not happening,
    1.exported the schedule task
    2.modified
    3.Imported
    Thanks and Regards
    INIYA

    835060 wrote:
    Two ways
    1.either create a new job with your attributes,deploy and disable the old one(better if its dev env)
    2.Take the export of your metadata.Modify the attributes and import back the fileI guess he already has tried the 2nd option which is not working and I believe it should not work as well. The time you create a job, it reads your xml and sets the attributes and creates a instance of the task. Thus if you just change the xml it won't reflect in the previously created instance.
    Hence create a new job and delete the previous one.
    HTH,
    BB

  • Deployed KM Scheduler Task Does Not Appear in Global Services / Scheduler T

    Hi All,
    I've deployed a portal service and a KM scheduler task in the same DC but cannot see the scheduler task listed under System Admin -> System Config -> Knowledge Management -> Content Management -> Global Services -> Scheduler Tasks.
    The service works correctly and performs its periodic processing once on initialisation of the service, and I can see the resulting log statements to make sure it has worked.
    Both the service and the scheduler task are packed inside the same DC, which builds and deploys without any errors.
    There are no errors in the log regarding the deployment of the DC, or the scheduler task.
    There is a log statement about registering the classloader for the DC, which I assume is the statement in the IRFServiceWrapper init() that goes:
    CrtClassLoaderRegistry.addClassLoader(this.getKey(), this.getClass().getClassLoader());
    But I still dont see the task listed in Global Services -> Scheduler Tasks.
    Does anyone know what might be causing this or how to diagnose the problem further?
    Cheers,
    Steve

    Hi Srini,
    No it doesn't it just has the run method which is generated automatically.
    I have created a local Portal Application project, which is not in a DC, and this also does not have a default constructor ether but appears in the Scheduler Tasks list as soon as it is deployed.
    I also tried to create a Portal Applicaiton DC and Portal Applicaiton (Packaged as SDA) DC and despite the scheduler task being the same, both the DC tasks do not appear in the Scheduler Tasks.
    The only one I can get to work is the local Portal Application project. This is no use as we cant store this in DTR (unless someone can explain how to do this???).
    The Portal Application project packages up the RF Framework JARS inside its PAR file, but the DC and SDA projects dont, so I tried including them via an Assembly Public Part to an External Library DC, which does include the JARs in the deployment files but they still dont appear in the Scheduler Tasks.
    Has anyone out there got a working Scheduler Task in a Portal Application DC?
    Cheers,
    Steve

  • Scedule Task OIM 11G

    Hi All,
    I am trying to create a schedule task in OIM11G .
    I have done
    * export, update, import the task.xml .
    * creates a java class that extend the schduler class as reuired.
    * created a jar file
    * created the plugin zip file ( named plugin.zip )
    * put the plugin.zip file in <oim-home>/ plugins
    now:
    I go into the web console, create a new task, I can see my class in the list and I create a task.
    when I ran the task in the consoel I see an error that it can not load the class , so my question is :
    do I need to put the jar file in some directory ? - which one exactly ?
    thanks
    S.

    Hi
    There are two ways to write a scheduled task in OIM11g.
    One is plug-in and other is having the scheduled task xml uploaded to MDS.
    Out of the second option you can do it in two ways.
    1. update your scheduled task details in the OOTB task.xml and import it back. Then create a scheduled Job using admin cosole.
    2. Create an XML file like the one shown and upload it to /db in MDS. Name the xml same as the task name.
    <?xml version='1.0' encoding='UTF-8'?>
    <scheduledTasks xmlns="http://xmlns.oracle.com">
    <task>
    <name> Recon Exception Report Update Task</name>
    <class>com.xxxx.iam.scheduledtasks.ReconExceptionForReportsTask</class>
    <description>The task updates the recon_exception table with orphan account information</description>
    <retry>0</retry>
    <parameters>
    </parameters>
    </task>
    </scheduledTasks>
    Once uploaded successfully, create and Job from OIM admin console.
    Finally , the Jar can be placed in JavaTasks folder and it definitely picks up.
    That's it You are done.
    Let me know if you have any questions.
    Regards
    user12841694

  • How to deploy the goldengate on EBS R12

    EBS : R12.1.1
    ORACLE DATABASE : 11.1.0.7
    OS version : AIX 6.1
    The source environment and the standby enviroment are the same.
    I want to know how to deploy the goldengate on EBS R12 , not for reporting , only just for Disaster recovery .
    I have read 1112325.1 (Deploying Oracle GoldenGate to Achieve Operational Reporting for Oracle E-Business Suite) , and I think that was not enough .
    It was difficult for me , cause there're lots of objects in EBS , and what should be notice , for example , the triggers , the sequences , and so on .
    Had anybody done this before or deployed this sort of thing , please give me some advice and help .
    Any help will be appreciate .
    Thanks,
    Brook

    Do you want to configure standby database only? If yes, please refer to (Business Continuity for Oracle E-Business Release 12 Using Oracle 11g Physical Standby Database [ID 1070033.1]).
    Thanks,
    Hussein

  • How to check connector connectivity in OIM 11g

    Hi All,
    How to check connector connectivity in OIM 11g. In erlier version we have XIMDD from where we can test connectivity. But I dont see anything in 11g.
    Thanks.

    Noway ! !
    Go to:
    *<Oracle-Weblogic-Middleware-Home>\Oracle_IDM\server\features\Xellerate.zip* & you can find the XIMDD.war

  • How to View the Scheduler in ODI Console

    Hi
    In ODI Studio, we may Schedule a Scenario and also, we may view all Schedules process from the Agents (View Schedule option).
    My colleagues are going to use ODI Console, but we cannot find out HOW to View the Schedule in ODI Console.
    In Oracle documentation about FDMEE, we can read the following: If you want to cancel a specific instance of a schedule, use the ODI Studio or ODI Console... see the PDF document in attachment.
    Regards
    Claude

    To display the schedule for one agent:
    In Topology Navigator expand the Agents node in the Physical Architecture accordion.
    Select the Physical Agent you want to update the schedule.
    Right-click and select View Schedule.
    The Schedule Editor appears, displaying the schedule for this agent.
    Check: http://docs.oracle.com/cd/E17904_01/integrate.1111/e12643/running_executions.htm#ODIDG634
    HTH -
    Jasmine

  • How to deploy the Oracle Forms and Reports 10g in Web?

    Currently I am working in Oracle forms & Reports conversion project (6i to 10g).
    As of now 6i forms working as a standalone application. After migrated it to 10g, I need to deploy the forms and reports in web.
    Any one know how to deploy the Oracle forms and Reports in web?
    Please help me out. Thanks in advance.
    Vimal

    Hello Frank,
    for development, you need to install Oracle Developer
    Suite 10g. This includes Forms and Reports.this topic interests me too, because I've downloaded Developer Suite and Database (both for 10g) from Oracle website, installed them, but I couldn't connect to a database.
    What should be done for me to create a database link and be able to connect locally, in my personal Desktop computer? (Not to a server)
    Once it was told me here that I should download 10g Database - I did it, and installed it, but it didn't work. Later, some of my job partners said I should install them in a sequence - that is, 1st the Developer, and 2nd the Database. But it has failed too. And I don't know how to configure a database connection.
    Best regards,

  • How to know the amount of ora 11g page-out  memory (sga and pga)?

    How to know the amount of oracle 11g page-out memory ( sga and pga) in the SunSolaris 10 Unix and Linux.
    I need to know how many oracle memory are being page-out ( all and for a one oracle server process).
    thanks

    You can monitor the paging with vmstat or sar commands.
    http://download.oracle.com/docs/cd/B28359_01/server.111/b32009/tuning.htm#sthref500
    You can also get the paging information on OEM home page if configured for your database.
    But I don't know if there exists a method with which one can find out how much memory per session/server process is getting paged out.

  • Run library ThirdParty in Schedule Task - OIM 11

    Hi
    I have a custom code to ScheduleTask, in this code, I need import a external library. In java code I declared the import of library
    I loaded of the .jar to directory OIM_HOME/server/ThirdParty and I ran the UploadJars.sh to ThirdParthy, option 3, but when run the schedule task is diplayed java.lang.NoClassDefFoundError:
    I have to do anymore to run this ThirdParty ?
    Tks

    You need to go into the Weblogic console, select the server (oim_server1) and then the startup tab. Under the classpath box, put in the full path to your jar file. Restart your application server.
    Now your scheduled task will be able to find the jar file.
    -Kevin

  • How to deploy the SDA files in PI 7.1 ?

    Hi Guys,
    I have SDA file to deploy in PI 7.1. I could not find SDM in 7.1, Is this removed, if yes then how to deploy the SDA files.
    any help would be appreciated
    Thanks,
    Srini

    Hi Stefan,
    I placed the SDA file in the JSPM inbox directory and the JSPM could not detect this file as hotfix. I am getting the following error, it looks like i need to use the Netweaver developer stuido to deploy the SDA files.
    I am getting the following error even after placing the sda file in the respective directory.
    No applicable development component(s) found for deployment in Inbox directory
    sappn5\sapmnt\trans\EPS\in.
    Thanks,
    Srini
    Edited by: srinivas kapu on Oct 7, 2008 6:57 AM

  • How to Deploy the Application

    Hello All.
    I have developed an application in WebDynPro ABAP.
    How to deploy the application.
    Warm regards,
    SampathKumar.

    Hi,
    You can delpoy it using the portal or in any IE.
    Create an Iview in the portal and give the application name of your component and run it. As portal is the part of the SAP Netweaver.  Where ever you want you can call the application as it is a URL.
    For the creation of Iviews and related things, refer to the EP forum.
    Regards,
    Lekha.

  • How to deploy the .war to tomcat

    Hello All,
                 How to deploy the war file into tomcat server & work? Can any body enlighten me how to proceed and test the application?

    Hi,
    assumed you talk about Tomcat in general.
    Simply copy you archive (xyz.war) into the subdir \webapps of your tomcat installation.
    Invocation: http://hostname:port/xyz/resource
    -> where xyz is the name of your archive and
    -> resource is what you have specified within web.xml (<servlet-mapping> - tag) or a jsp / html you have in your archive.
    -> host is your machine (try localhost for instance)
    -> port usually is 8080
    Hope that helps
    M.

  • How to access the Approvals task using url

    Hi,
    Please let me know how to access the approval tasks in BPM using the url.
    I need to access the approval tasks from outside BPM
    Thanks

    Hi Latha,
    There are many ways to pass parameters to 2nd page.
    However try using hashmap.
    1st page code in processformrequest:
    import com.sun.java.util.collections.HashMap;
    HashMap hashmap = new HashMap();
    hashmap.put("var_enpid",enpid);
    pageContext.forwardImmediately("XX_SECOND_PG", //Function Name of the 2nd page
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    hashmap, // put Null if no parameters to pass thru hashmap
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    2nd page code in processrequest:
    String empid = (String)pageContext.getParameter("var_enpid");
    Regards
    Sanu

Maybe you are looking for