Running "scheduled jobs" in an application server

Hi, I'm working on a project where we run some middleware integration software on websphere 5. What I need to create is a component that really is a thread that polls a database table and pull out the data, format it and send it to another system if there's any data available in the table. This is relatively easy using a standalone application, but I'd like this to run inside websphere so we don't have to manage a new application, just a new component in the app server. But on the other hand, manipulating threads (for sleep, etc) is not a thing one should do in an app server. So, does anyone have an idea for an elegant solution for doing this task inside websphere?

What about JBoss? Can you implement the "timer" from this app server? I'm doing the same type of thing, but using JBoss.
Also, why do you say that you shouldn't manipulate threads from inside an app server?

Similar Messages

  • Is it possible to run scheduled job

    Is it possible to run scheduled job (custom developed java application), for doing some periodic database operstions in portal.
    I'm using portal database (maxdb) with my portal application.I must do some periodic calculations and store them into database table.Therefore i must use scheduled job running on ortal server.
    Is it possible? If possible, how?
    Thanks.

    Hi,
    Yes it is possible with SAP NetWeaver Scheduler for Java.
    You can check below link for more information:
    http://help.sap.com/saphelp_nwce71/helpdata/en/44/03d66015ee10b3e10000000a11466f/content.htm
    http://help.sap.com/saphelp_nwce71/helpdata/en/45/45d287e620507be10000000a1553f6/content.htm
    Thanks
    Sunny

  • How to run ear file in java application server

    i want how to run .ear file in java application server
    1. i m created ear file
    2. i m created jar file (bean,home,remote)
    3.i m created war file(in the form of jsp)
    but till now i couldnt run ear file
    how to run
    please hel me

    You must create :
    1.Jar file
    2.War file
    And then put them into an ear file
    Exemple : myapp.ear contains
    myappEJB.jar
    myappWEB.war
    META-INF/application.xml
    and application.xml looks like this :
    <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee
                            http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
        <display-name>myapp</display-name>
        <description>Demo application</description>
        <module>
            <ejb>myappEJB.jar</ejb>
        </module>
        <module>
          <web>
             <web-uri>myappWAR.war</web-uri>
             <context-root>/myapp</context-root>
          </web>
        </module>
    </application>Good luck

  • Error while running schedule jobs in oim 11 gr2

    Hello,
             I have create the custom schedule job.for which i have create the java call and the plugin.xml file and i have successfully register it to oim
                 ,then i have create the metadata scheduler xml and import it to mds using wlst.
              then i have cretae the schedule job in oim advance tab.but when i run that task the console propmt the error
    <Jun 13, 2013 5:47:19 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000> <XSD Validation Exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot f
    ind the declaration of element 'scheduledTasks'.>
    <Jun 13, 2013 5:48:51 PM IST> <Error> <oracle.iam.transUI.impl> <BEA-000000> <ADP ClassLoader failed to load: com.oracle.demo.oim.scheduled.NotificationDemoSc
    heduledTask>
    please help how to resolve this error
    regards,
    Tushar

    Check your scheduler xml. I hope XSD validation exception points to invalid scheduler xml file. It should look something like this sample
    <scheduledTasks xmlns="http://xmlns.oracle.com/oim/scheduler">
       <task>
          <name>Lookup Recon Scheduled Task</name>
    <class>oracle.iam.samples.schtasks.LookupReconScheduledTask</class>
          <description>Lookup recon Scheduled Task</description>
          <retry>5</retry>
          <parameters>
              <string-param required="true" helpText="Name of the Lookup code">Lookup Code Name</string-param>
    </parameters>
       </task>
    </scheduledTasks>

  • OIM 11 - Error while running scheduled job "Evaluate User Policies"

    Hello,
    We are trying to run the OOTB scheduled job " EValuate User Policies" with the default parameters. Job history shows the execution status success but diagnostic logs throw the following error. And the users donot get provisioned to their resources based on the access policies.
    We are on OIM 11 BP05.
    [2013-01-30T10:11:47.072-05:00] [oim_server1] [NOTIFICATION] [IAM-0080006] [oracle.iam.platform.kernel.impl] [tid: Thread-1033] [userId: oiminternal] [ecid: 3f3dc64898fb7625:-13c8cd5d:13c88a6943c:-8000-0000000000000002,1:26684] [APP: oim#11.1.1.3.0] Orchestration process moved to failed stage, and the corresponding error is - {0}[[
    oracle.iam.platform.kernel.EventFailedException: Operation - EVALUATE_POLICIES that is submitted as part of the orchestration is not supported.
    at oracle.iam.platform.kernel.impl.EntityDefaultActionHandler.execute(EntityDefaultActionHandler.java:53)
    at oracle.iam.platform.kernel.impl.DefaultActionHandler.execute(DefaultActionHandler.java:41)
    at sun.reflect.GeneratedMethodAccessor5717.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.iam.platform.kernel.impl.EventHandlerDynamicProxy.invoke(EventHandlerDynamicProxy.java:30)
    at $Proxy254.execute(Unknown Source)
    at oracle.iam.platform.kernel.impl.OrchProcessData.runActionEvents(OrchProcessData.java:1036)
    at oracle.iam.platform.kernel.impl.OrchProcessData.runEvents(OrchProcessData.java:644)
    at oracle.iam.platform.kernel.impl.OrchProcessData.executeEvents(OrchProcessData.java:227)
    at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.resumeProcess(OrchestrationEngineImpl.java:764)
    at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.process(OrchestrationEngineImpl.java:519)
    at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:459)
    at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:378)
    at oracle.iam.accesspolicy.impl.AccessPolicyServiceInternalImpl.evaluatePoliciesForUser(AccessPolicyServiceInternalImpl.java:78)
    at oracle.iam.accesspolicy.api.AccessPolicyServiceInternalEJB.evaluatePoliciesForUserx(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor5730.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy574.evaluatePoliciesForUserx(Unknown Source)
    at oracle.iam.accesspolicy.api.AccessPolicyServiceInternalEJB_bgsblp_AccessPolicyServiceInternalRemoteImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at oracle.iam.accesspolicy.api.AccessPolicyServiceInternalEJB_bgsblp_AccessPolicyServiceInternalRemoteImpl.evaluatePoliciesForUserx(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor5727.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
    at $Proxy164.evaluatePoliciesForUserx(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor5726.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
    at $Proxy421.evaluatePoliciesForUserx(Unknown Source)
    at oracle.iam.accesspolicy.api.AccessPolicyServiceInternalDelegate.evaluatePoliciesForUser(Unknown Source)
    at com.thortech.xl.schedule.tasks.tcTskUsrEvaluatePolicies$PolicyEvalWorker.run(tcTskUsrEvaluatePolicies.java:319)
    at java.lang.Thread.run(Thread.java:662)
    at com.thortech.xl.scheduler.tasks.SchedulerBaseTask$XLSchedulerThread.run(SchedulerBaseTask.java:157)
    [2013-01-30T10:11:47.081-05:00] [oim_server1] [NOTIFICATION] [IAM-0080046] [oracle.iam.platform.kernel.impl] [tid: Thread-1030] [userId: oiminternal] [ecid: 3f3dc64898fb7625:-13c8cd5d:13c88a6943c:-8al.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
            at oracle.iam.accesspolicy.api.AccessPolicyServiceInternalEJB_bgsblp_AccessPolicyServiceInternalRemoteImpl.evaluatePoliciesForUserx(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor5727.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
            at $Proxy164.evaluatePoliciesForUserx(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor5726.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
            at $Proxy421.evaluatePoliciesForUserx(Unknown Source)
            at oracle.iam.accesspolicy.api.AccessPolicyServiceInternalDelegate.evaluatePoliciesForUser(Unknown Source)
            at com.thortech.xl.schedule.tasks.tcTskUsrEvaluatePolicies$PolicyEvalWorker.run(tcTskUsrEvaluatePolicies.java:319)
            at java.lang.Thread.run(Thread.java:662)
            at com.thortech.xl.scheduler.tasks.SchedulerBaseTask$XLSchedulerThread.run(SchedulerBaseTask.java:157)
    Any answer is highly appreciated.
    Thanks,
    MBiswal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Ok, did you reimported the /metadata/iam-features-accesspolicy/event-definition/EventHandlers.xml from the BundlePatch folder?
    Have you followed Addendum to OIM 11.1.1.5.6 Bundle Patch 06 Readme (Doc ID 1543504.1)?

  • Urgent: problem running reports in Oracle 10g application server

    Hi all,
    our problem is that we deployed a jsp report as Ear file in Oracle 10g application server in infrastructure node.deployment says successfull.when we try to run that report it says 401 unauthorised.while sending request we are passing the database username,password &sid is this correct or any configuration setting to be done to make it run.
    one morething normal jsp works fine.when we run reports jsp it gives the above mentioned 401 error.

    hello,
    when you deploy reports JSPs they still require the reports specific componentes (e.g. TLD file, classes, ...) etc be available. i doubt that's the case in your ear file.
    thanks,
    ph.

  • Control Center status running scheduled jobs stops when DB is shutdown

    I have scheduled jobs in the Control Center of OWB, and the status is "Running" (Green Arrow ->), but everytime we stop and start the database I have to start the schedule job again under Status.
    Is there any way to fix this so that when the database stops and restarts somebody does not have to go into the Control Center and restart the jobs that are scheduled?
    Thanks

    I'm been told that it's a bug in the current version of OWB and to fix this problem we should upgrade to 10.2.0.3.

  • Bat file for running scheduled jobs

    Hi
    I am not entirely sure whether this is the correct forum to post this question, so apologies if I have posted this question in the wrong place.
    Anyhow, I would like to know how to create two automated bat file scripts that will execute a PL/SQL package that will tell my Oracle 10g R2 database to run a scheduled job. Equally, I need another bat file to tell it to drop the scheduled job.
    I already have a PL/SQL package that creates a schedule job using dbms_scheduler, and I can execute the scheduled job by going into SQL Plus running the execute command against the package. It is this latter bit, the execute part that I want to automate into bat file.
    Can someone show me how to do this?

    I'm in complete agreement with Hans. Oracle has two facilities DBMS_JOB and DBMS_SCHEDULER neither of which benefits in any way be being called by a batch file.
    What is your version number (all of it) and why are you considering this idea?

  • Can we Run 10g Forms & Reports without Application Server

    Currently We are using form 5 and reports 3.5
    we are willing to upgrade .
    we are told that we can upgrade only to 10g developer suit
    and for that Application Server is must
    Our requirement is for LAN based application only
    Do we have to go-in for application Server
    DOes the 10g forms and 10g reports have Form server /report server which can help us to run application using Browser but without IAS
    CK

    Chaand,
    for production environments you must run Forms and Reports through Oracle Application Server as there no longer is a client-server runtime. For development puposes tehre is a HTTP server in Oracle Developer Suite that is used to run both servers.
    Frank

  • Requirements for running SOA 11g on Websphere Application Server

    Hello All,
    Could somebody please provide me with the requirements needed to run SOA 11g applications on Websphere Application Server(WAS) like what version of WAS is required etc.
    Thanks

    The latest release of SOA Suite 11g 11.1.1.4.0 (PS3) is certified on Oracle Weblogic Server and IBM WebSphere Server. Please refer certification related information here -
    http://www.oracle.com/technetwork/middleware/ias/downloads/fusion-certification-100350.html
    Release 11.1.1.1.x to release 11.1.1.3.x are supported on Oracle Weblogic Server only.
    OAS 10g is not a supported application server for 11g Soa Suite.
    Regards,
    Anuj

  • Can AQ be used when running in IBM's WebSphere Application Server?

    Hi,
    We are using IBM WebSphere Application Server (WAS) but not planning to use MQSeries. We want to use Oracle AQ. Is it possible to run an app in WAS with Oracle AQ functionality being used?
    Anyone out there is doing this?
    Any info. is greatly appreciated!
    Thanks.
    Alex

    If you ever find the answer, please let me know. I am trying to do the same with WebLogic but with little success. I have participated in the following discusiions:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jms&item=6218
    http://marvel.oracle.com/pls/otn/f?p=17000:8:25148205767784132::NO::F17000_P8_DISPLAYID,F17000_P8_CRITERIA:40460583213,
    If you are not using MDB in WAS or WAS MDB supports transacted session, then there is a good chance that you can use AQ/JMS. BTW, why don't you want to use MQ Series?

  • Can a long running batch job causing deadlock bring server performance down

    Hi
    I have a customer having a long running batch job (approx 6 hrs), recently we experienced performance issue where the job now taking &gt;12 hrs. The database server is crawling. Looking at the alert.log showing some deadlock,
    The batch job are in fact many parallel child batch job that running at the same time, that would have explain the deadlock.
    Thus, i just wondering any possibility that due to deadlock, can cause the whole server to be crawling, even connect to the database using toad is also getting slow or doing ls -lrt..
    Thanks
    Rgds
    Ung

    Kok Aik wrote:
    According to documentation, complex deadlock can make the job appeared hang & affect throughput, but it didn't mentioned how it will make the whole server to slow down. My initial thought would be the rolling back and reconstruct of CR copy that would have use up the cpu.
    I think your ideas on rolling back, CR construction etc. are good guesses. If you have deadlocks, then you have multiple processes working in the same place in the database at the same time, so there may be other "near-deadlocks" that cause all sorts of interference problems.
    Obviously you could have processes queueing for the same resource for some time without getting into a deadlock.
    You can have a long running update hit a row which was changed by another user after the update started - which woudl cause the long-running update to rollback and start again (Tom Kyte refers to this as 'write consistency' if you want to search his website for a discussion on the topic).
    Once concurrent processes start sliding out of their correct sequences because of a few delays, it's possible for reports that used to run when nothing else was going on suddenly finding themselves running while updates are going on - and doing lots more reads (physical I/O) of the undo tablespace to take blocks a long way back into the past.
    And so on...
    Anyway, according to the customer, the problem seems to be related to the lgpr_size as the problem disappeared after they revert it back to its orignial default value,0. I couldn't figure out what the lgpr_size is - can you explain.
    Thanks
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "Science is more than a body of knowledge; it is a way of thinking" Carl Sagan

  • Run Servlet Class on Sun Application Server  PE 9.0

    Hi,
    I have a problem to run an servlet class on Sun Application Server PE 9.0.
    My directory struture are given below :-
    C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\test.class
    C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\web.xml
    please give me answer in detail.

    Did you web archive the WEB-INF into .war file and then deployed it with AppServer admin console?

  • Error while running scheduled job fromEnterprise Manager--Please help ASAP

    BEGIN
    Hi,
    I have created a scheduled job using the below code.
    BEGIN
    sys.dbms_scheduler.create_job(
    job_name => '"M2RT6"."INCR_REFRESH_M2RT6"',
    job_type => 'PLSQL_BLOCK',
    job_action => 'begin
    REFRESH_REPORTS_POETIC(''M2PT6'',''INCR'');
    end;',
    start_date => systimestamp at time zone 'US/Eastern',
    job_class => 'DEFAULT_JOB_CLASS',
    auto_drop => FALSE,
    enabled => TRUE);
    END;
    And I tried to execute this job from Enterprise Manager.
    I got the below error:
    java.sql.SQLException:
    ORA-02800: Requests timed out
    ORA-06512: at "SYS.DBMS_ISCHED", line 150
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
    ORA-06512: at line 2
    Help needed urgently. Thanks for the resolution inadvance.
    Thanks,
    Sudheer.Vempali

    Hi,
    This is the bug in Oracle. Most of the times, restarting Oracle database may fix the issue.
    Basically, an existing bug needs the oracle database restarts in a regular basis.
    Restarting oracle database will flushes the database buffer cache.
    Thanks,
    Sudheer.Vempali

  • Scheduling jobs in different app server

    Hi all,
    Does anyone knows how to schedule a background job in a specific app server, by using FM JOB_SUBMIT / JOB_CLOSE?
    I've analysed SAP documentation for these FMs and it says that the parameter EXTPGM_SYSTEM can be used to inform the app server in which the program will be ran. However, it seems to be for external programs and my requirement is just to set a abap report to run in a specific app server.
    SAP documentation says:
    EXTPGM_SYSTEM Parameter
    Name of the host system on which an external program is to be run. You must supply a value for this parameter.
    Note: You must specify both the name of an external program and the name of the system on which it is to be executed.
    As I don't have an external program, just the abap report, I'm not sure I can use such parameter to schedule the job at the desired app server.
    Please advise.
    Thanks,
    Rafael.

    Kartik,
    there is another program which people uses to read the generated files. As per the server load balancing, some output files are being created in server A, and some in server B. With this parameter, the output files would be generated only in server A.
    So, Bryan, that does make sense.
    So, you mean I should consider only JOB_CLOSE in order to inform target system? Should I ignore the external program parameters in JOB_OPEN?

Maybe you are looking for