How do I run a background process which is under WLE control

Hello folks:
How can I run a background process that runs under WLE's control.
What I am looking for is a way to have a process that runs in an
infinite loop and polls the database to see if there is any background
work that needs to be done. But I still want the process to be managed
by WLE for fault tolerance.
Thanks,
Ram Ramesh
[email protected]

The easiest way to do this is to write a Tuxedo server (i.e., using only
ATMI and no CORBA stuff) that does the following:
1.) In tpsvrinit(), the last thing that it should do is a tpacall to the
service contained in this server (and nowhere else) with the TPNOREPLY
flag.
2.) In the method that implements the service, do your database work, sleep
for a little while, do another tpacall to itself with the TPNOREPLY flag,
and return.
Hope this helps,
Robert
Ram Ramesh wrote:
Hello folks:
How can I run a background process that runs under WLE's control.
What I am looking for is a way to have a process that runs in an
infinite loop and polls the database to see if there is any background
work that needs to be done. But I still want the process to be managed
by WLE for fault tolerance.
Thanks,
Ram Ramesh
[email protected]

Similar Messages

  • How do I run a full process from SSIS ???

    Hi all
    I run BPC 5.1 SP3, and I need to automate a series of jobs, but the system is giving me problems and I hope someone can help out.
    I need to automate a full optimize and then a full process of our AppSets.
    I know that in SP3, the Appsets are taken offline for the full optimize and are then left offline, so in-between I run the "SystemAvailableTask" to set the Appsets back online.
    Additionally, all dependencies are removed from the FACT table for the optimized AppSets, which are only rebuilt by performing the full process afterwards.
    Anyway, the problem I have is that the optimize is running quite happily from SSIS, as is the SystemAvailableTask.
    Up to this point in the job, everything works as intended, so I now have a fully optimized Appset, which is available for users to access.
    However, the Full Process job then fails.
    I have run the Full Process as a standalone job from SSIS and it takes 2m36s to run, but fails to rebuild any dependencies.
    When I ran it from the SAP Admin program, it took 9m57s to run and rebuilt everything correctly.
    I am currently only offered 1 option in the SSIS package, which is to run a Full or an Incremental process, so I select Full.
    However, on the right-hand side, there are various other options available (such as bApplicationProcess, PROCESSMODE (set to "3"), PROCESSOPTION (set to "1"))
    Should I be changing any of the settings on the right to make the job run properly, or should I be doing it differently.
    Obviously, I need to make this work from SSIS, as I can't schedule a full process any other way, so I would be extremely grateful for any help that you can offer.
    Thanks
    Craig
    Edited by: Craig Aucott on Aug 25, 2009 10:21 AM

    The easiest way to do this is to write a Tuxedo server (i.e., using only
    ATMI and no CORBA stuff) that does the following:
    1.) In tpsvrinit(), the last thing that it should do is a tpacall to the
    service contained in this server (and nowhere else) with the TPNOREPLY
    flag.
    2.) In the method that implements the service, do your database work, sleep
    for a little while, do another tpacall to itself with the TPNOREPLY flag,
    and return.
    Hope this helps,
    Robert
    Ram Ramesh wrote:
    Hello folks:
    How can I run a background process that runs under WLE's control.
    What I am looking for is a way to have a process that runs in an
    infinite loop and polls the database to see if there is any background
    work that needs to be done. But I still want the process to be managed
    by WLE for fault tolerance.
    Thanks,
    Ram Ramesh
    [email protected]

  • How to run a background process in a J2EE App ?

    Hi guys,
    Here is the requirement which totally stumped me.
    " The web app should have a feature like a background process or something like cron jobs.. which keeps on running in the background and at a particular time each day calls a method". User intervention is not an option.
    Now had this been a stand alone app .. I could have done this using Threads.. but i cant possibly use threads in a J2EE app. Any pointers.. how I can go about realizing this
    Thanks for your replies.
    Cheers!

    You could take the approach that SoulTech mentioned and spawn a new thread from the Servlet's init method. To have the servlet invoke this method with no intervention, you would need to set the following parameter in your servlet definition in your web.xml:
    <servlet>
      <servlet-name>MyStartupServlet</servlet-name>
      <servlet-class>com.my.company.MyStartupServlet</servlet-class>
      *<load-on-startup>1</load-on-startup>*
    </servlet>When you deploy your application, the servlet will be loaded, and its init method will be called.
    If your application is running in a servlet container, I believe you are allowed (by the specification) to spawn your own threads, but you should do so carefully. Since you're writing a scheduler and not some kind of worker threads that are messing with your database, I think you should be okay. Still, just to keep it clean you should add any clean-up logic you may need to your servlet's destroy method. I know that in an EJB container, spawning your own threads can definitely be a problem and the container makes no guarantees that they will function correctly. The J2SE Timer class could be used if you're not using EJB, but the Timer class doesn't have support for J2EE - that's at least part of what led to the introduction of the timer beans in J2EE 1.4. If you're already using EJB, especially EJB 3.0, then the timer service provides a convenient built-in mechanism to do exactly what you want.
    There are always multiple ways to solve any problem...
    Edited by: proflux on May 15, 2008 1:04 PM

  • How can I run a background service in Firefox

    Need to know how to create a service and run on startup (in Firefox zte device).

    Hi,
    I want to create a service in firefox os which will run in background and listening to some events in device like screen on/ off state.
    Thank you

  • ATP Re-Run in background processing for sales order

    Hello All,
    In sales order i need to re run the ATP check for the quantity confirmation in background processing.
    Scenario is :
    I have created orders with order quantity 100.
    while creating the order stock for the same material was only 20 so ultimately it will not confirmed the quantity.
    After the some period i m increasing stock of same material by 120. Now, same order which i created before can be confirmed as i need only 100 quantity in that. but for the same I need to manually run the ATP again and then it will confirm the quantity.
    instead of manually re run the ATP again i want to do this activity in background processing so that it will automatically confirmed the stock once inventory increased.
    Is there any provision in sap to avoid this manual task with the help of background processing or any program?
    Thanks and Regards,
    Rasik

    Hi,
    This can be achieved by rescheduling the orders .
    << Moderator message - Cut and paste response from http://help.sap.com/saphelp_470/helpdata/en/93/744c0c546011d1a7020000e829fd11/content.htm removed and points unassigned. Plagiarism is not allowed in SCN >>
    You reach the Sales screen.
    Select Environment ® Backorders ® Rescheduling ® Execute.
    You can  also simulate the backorders for rescheduling before confirming by selecting the simulateevaluate option.
    Prerequisite for rescheduling the line items of the order is that at schedule line you should not flag the  field fixed date and quantity field. Also for ATP you must have defined the scope of check with checking rule BO(i guess) for that particular plant in combination of checking group .
    Hope this will help you.
    Thanks and Regards,
    Atulkumar Dagade
    Edited by: Rob Burbank on Jan 24, 2012 10:16 AM

  • When MRP run through background process in MDBT open PR and PO not comming?

    Hi,
    When MRP run through backgroung process in MDBT open PR and PO not coming in MDBT result.
    Pls advise accordingaly.
    Regards
    rk

    Ram,
    Either I am totally misunderstanding your statements, or your business people are misinformed.  
    The output of MD01 (MRP total run in foreground) and the output of MDBT (MRP total Run in Background) ARE IDENTICAL, provided you have selected the same parameters.  
    Neither output contains a discrete listing of open Purchase orders and Purchase requisitions.
    Standard output of both MD01 and MDBT are:
    1.  List of materials processed, with exception messages
    2.  Statistics
    In addition, both of these programs also write MRP records to the MRP databases, provided that the "Display Material List" parameter is set.  In this case, both of these programs will produce data that can be further reviewed and managed in MD05 and MD06. MD06 is the tool that most planners use to process the MRP database info.
    If you wish to see a listing of the entire MRP results (either MD01 or MDBT), then execute transaction MDLD.  This will produce either a spoolfile or a printed document.
    For the PO or PR listings, review my earlier suggestions.
    Rgds,
    DB49

  • How do I run the same process on multiple CPUs  of a processor set?

    Hi,
    I am working on UltraSPARC T1 Processor. My development environment is SunStudio 12 running on Sun Solaris 10 OS.
    I want to run the same process concurrently on 4 hardware threads that belong to one core.
    I used pset_create() for creation of the processor set.
    Later I assigned 4 processors (that belong to one core) using pset_assign().
    I used fork() to create a child process and used execv() to assign a new process.
    I used pset_bind() to bind this new process to processor set created earlier.
    When we are executing the program we observe that the process is running in only the first processor (hardware thread) of the assigned processor set.
    How do we make all the processors of the processor set run the same process?
    Thanks in advance.
    Nesa Rani

    Hi Mark,
    With this communication based on CAN whilst all of the data is available on the network arbitration IDs are still used to address the individual PCs so I believe you will need to explicitly send the data to each PC to get the data across all three.  The other option would be to have one PC acting as a data server making the data available through a network interface such as shared variables.  This may be simpler to implement and also easier should you need to scale it up.
    Regards,
    James Mc
    ========
    CLA and cRIO Fanatic
    wiresmithtech.com/blog

  • Java code running as background process in Linux causes high CPU util.

    I'm running a piece of java code as a background process in Redhat 7.1 . When I specify to run it as a background process (using the '&') at the command line, I get CPU utilization at around 5% and it dips.
    When I edit the script that runs the java code to specify running it as a background process withint the script itself (java ..... &) and then go to the command line and run the script, the CPU utilization shoots up to 95% and stays at the low 90's - very high 80's range for the CPU utilization..
    I'm hoping someone has any idea for this behavior and a way to fix it.
    Thanks in advance,
    Sarat..

    This is an interesting post and i'm sory i don't have time to
    experament before i answer
    you could of course run the script as background
    *.sh &
    but that's probubly not what you want
    I think the solution lies in giving the
    proccess a job number %n
    then setting it %n &
    it might even work to
    put something like %java &
    Anyway when it's running fullout
    it is because it is in the
    current terminal process group PID.
    wish i could help more

  • Error during background processing which is created by Std.program RFBIBL00

    Hi Gurus,
         I am using standard program RFBIBL00 to generate batch session for the Tcode FB01.
         My BDC is working fine , if i choose  foreground or display error only option in SM35.But when i process the same session in 
         background it is giving error  Field BSEG-DMBTR does exist in SAPMF05A 0302.
                                 One more thing i want to point out when i process the session in forground or in display error only option
                      there i am getting information message Field BSEG-DMBTR does exist in SAPMF05A 0302. But for background due to same message  i.e (Field BSEG-DMBTR does exist in SAPMF05A 0302)  session processing is failed.
                                    Actually through ZProgram  data being uploaded  to application server. Then i am executing std. program RFBIBL00 to generate session.And  when i go to SM35 & choose the just created session for background processing,then processin i failed.
                              We have recently upgraded from 4.7 to ECC 6.0. Previously RFBIBL00 program is working fine but after upgrade it is not working.
                   Please give your valuable suggession.
    Regards,
    S C Patil.

    How are you related to this almost identical problem?
    Field BSEG-DMBTR. does not exist in the screen SAPMF05A 0302
    Thomas

  • Photoshop CS6 still running in Background Processes, won't close

    Lately, I've been having a problem with Photoshop CS6 where, even after I close the program, Photoshop.exe is still running under Background Processes in the task manager. Hitting "end task" on the program doesn't do anything. It takes up quite a big portion of my processing power, and it usually closes on its own if I just wait a good 5-10 minutes. Even weirder, while this "Ghost Photoshop" is running in the background, I can launch a new version of Photoshop, that will run at the same time without any trouble (aside from the expected slowness when a chunk of my processing power is being eaten up by whatever Ghost Photoshop is doing). I'm running Photoshop CS6 on Windows 8, with just one extension installed-- Coolorus 2.0.

    They were using the little red "x", file > quit allowed her to reopen the program etc. I find it weird that it wont close with the "x" but if I right click the icon on the task bar, it wont allow me to reopen or do anything with it so I was under the assumption it was stuck open.

  • How do you create translated versions of a project under version control?

    Hi,
    We have a project under version control that has been translated. How do we best create projects for the translated material so that the webhelp output matches the English version only translated? Is it possible to create a project with a name that reflects the translated language, copy the English project file to the new folder, change the name to coincide with the translated version, import all of the associated English files, and then exchange all of the English files with the translated ones?
    Thanks,
    Allen

    Hello Allen and welcome to the community.
    See if this article helps.  You didn't mention which RH version you're using, but except for the features specifically called out as being in RH8, the process should work for RH7 projects.
    I use Subversion for version control, and I haven't had any additional challenges from having localized projects in version control—you check the files in and out as you do the English ones. Check out the article and let us know if you have any additional questions.
    Note that the article gives recommendations, but you certainly can do your localized versions as completely separate projects.  If you do it that way, for each separate project, copy the English project to a new location, rename it if you want, and change the project language.
    Hope this helps,
    Ben
    GryphonMountain.net

  • How do I run scheduled background job manually

    I have a cancelled background job that is givingh dumps. I have implemented corrections and now i want to run it manullay to check it. How do i do that. Please suggest

    Hi Bill,
    You mentioned that you've applied some correction..If you applied some notes that might have modified the standard code.
    In that case Go to SE38, Give the program name, choose "variant" > Display. Now select the variant (with which you got the message its not valid).  Go to "Variant" > "Adjust".
    Then try running the report with the variant. This should solve the variant issue.
    Thanks,
    Debasis.
    Edited by: Debasis Sahoo on Sep 24, 2008 11:55 PM

  • Running a background process

    Hi,
    I have a retail website, and I am tweaking the final
    processing page to make it run faster. Right now, our customers
    wait up to 10 seconds after they hit the confirm button before they
    see the 'transaction complete' page.
    My idea is to take out some of the less important processing
    and run them after the 'transaction complete' page is displayed to
    customers.
    I am on a shared CF7 hosting with cfschedule disabled. Is
    there an alternative way to tell CF to run a script in the
    background?
    Thanks,
    Min

    One of the things I like about jQuery (I know this library
    the best but imagine others work in a similar fashion) is that when
    you submit a form via a jQuery function, jQuery uses the action
    attribute of the form tag to determine where it submits *unless* a
    submit to url is provided in the options object passed into the
    ajaxForm function.
    I haven't tried it before but you should be able to set the
    form action attribute to one url, which would be used if JS is off,
    and set another action url in options object that gets passed into
    the ajax form function
    Here's a sample of setting up an HTML form to submit via
    jQuery (the HTML form would use an alternate action page).
    $(document).ready
    function()
    var options = {
    target: '#formOutput', // target element(s) to be updated
    with server response
    beforeSubmit: showFormRequest, // pre-submit callback
    success: showFormResponse, // post-submit callback
    resetForm: true,
    // other available options:
    url: 'htp://domain.com/blah/blah/blah.cfm', // override for
    form's 'action' attribute
    type: 'post', // 'get' or 'post', override for form's
    'method' attribute
    dataType: 'json' // 'xml', 'script', or 'json' (expected
    server response type)
    //clearForm: true // clear all form fields after successful
    submit
    //resetForm: true // reset the form after successful submit
    // $.ajax options can be used here too, for example:
    //timeout: 3000
    // bind form using 'ajaxForm'
    $('#myform').ajaxForm(options);
    Might not be worth the effort of fit into your requirements
    but wanted to put it out there for you. I have a jQuery-driven CMS
    I built for a client that I could pull some code samples out for
    you if that might help.
    Cheers,
    Craig

  • How can I run the C program which will interact with user

    hi, all
    I wanna run a C program whose function is that just show a line of characters, waiting for user input and finally show what user has entered. The C can run correctly in command window. But when I use Runtime class, it can not run correctly. My question is that how I can emulate that C program just by invoking Java method. The code I have written below, thank.
          String command = "cmd /c a.exe";  // a.exe is that C program
          String s;
          try {
             Process process = Runtime.getRuntime().exec(command);
             InputStream input = process.getInputStream();
             BufferedReader bufferedReader =
                new BufferedReader(new InputStreamReader(input));
             while((s = bufferedReader.readLine()) != null)
                  System.out.println(s);
          catch(IOException e) {
             System.err.println("IOException: " + e.getMessage());
          }

    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Process.html#getOutputStream()

  • How to get current free background process number

    hi,guys:
         i have a question: how to get the current free and total background or dialog process number in speicifc server name?
    best regards,kevin

    You can get those details from SM50 transaction.
    You can also use these FM.
    TH_GET_WPINFO.
    TH_WPINFO.

Maybe you are looking for

  • How do I change the phone number that ipad is using for iMessage and FaceTime

    Since the latest iOS update my ipad uses my husbands phone number for iMessage and FaceTime. How do I change the phone number to match my iPhone?

  • Losing the ability to drag objects after 30 minutes. What's going on?

    Hi, I'm having a very strange problem. In InDesign, I'm losing the ability to drag objects around with the mouse after about 30 minutes of using the program. Everything else works fine, but I simply cannot perform this function. The box highlights, b

  • *** Why is the AppleTV export preset making my  HDV 4:3?

    A couple of weeks ago I was exporting my HDV sequences with the quicktime conversion>AppleTV setting and things were great. My worflow is to export for AppleTV and then put all the files on my MacMini that is hooked up to my LCD flat panel. Today I t

  • Elements 10 freezes up

    Element 10 keeps freezing up.  I've got Windows.  It is particulary prevalent in the organizer and Windows will state the the program is not responding.  However, it is happening occasionally in the full edit mode.  Any suggestions would be appreciat

  • No need for /etc/asound.conf ~/.asoundrc for mixing anymore?

    Hullo! I just installed the new version of MPD and was at the first time trying to do ALSA all the mixing of multiple audio streams on its own and found it working without any problems. Sure, this is surely nothing new an might be the case since a ye