How to stop a running remoteobject in flex?

Hi,
I'm using Flex+Blazeds+Java to do my project, but now I met a big problem: when I query the database, I use remoteobject to call the Java method to do this. But usually the query takes a long time, so during the waiting time , I hope I can cancel the query operation, or when I begin the next query, it can cancel the last query operation automatically. Is there any way to do this? If yes, How?
Thanks a lot!

Did you ever solve this problem ? If so please share the solution.

Similar Messages

  • How to stop the running infospoke

    Hi Experts,
    there is a infospoke is still running so long time, it's incorrect, i'll cancel it as kick off the dependenies, i have no idea to how to stop the running infospoke. Anybody could tell me how to do it. thanks in advance.

    hi denny,
       Go to SM37 , find the job , stop the process
    or
       To stop the job find the job with the help of the request name ( TC - SM37 ),then in the job Details find the PID .
    find the process in the process Overview (SM50 / SM51 ).
    Set the restart to NO and Cancel the process without core
    u can also see these threads that are already posted:
    stopping v3 run job LIS-BW-VB_APPLICATION_02_010
    how to cancel or change the background job which is scheduled
      In SM37, for the job , click on Step button. Then from the menu Goto > variant. You can see the process chain name here.
    sure it helps
    Thanks
    Varun CN

  • How to stop the running process chain

    How to stop the running process chains or infopackges...just qm status change is enought?

    BI - SM 37 - Kill the Job
    ECC - SM 50 - Kill the job

  • How to 'STOP' a running java thread in J2ME?

    Dear All,
    How to 'STOP' a running java thread in J2ME?
    In the middleware viewpoint, for some reasons we have to stopped/destroyed the running threads (we have no information how these applications designed).
    But in J2ME, Thread.destroy() is not implemented. Are there other approaches to solve this problem?
    Thanks in advance!
    Jason

    Hi jason,
    Actually there are no methods like stop() and interrupt() to stop the threads in J2ME which is present in normally J2SE Environment.
    But the interrupt method is introduced in Version 1.1 of the CLDC.
    So, we can handle the thread in two ways.
    a) If it is of single thread, then we can use a boolean variable in the run method to hadle it. so when the particular boolean value is changed , it will come out of the thread.
    for eg:
    public class exampleThread implements Runnable
    public boolean exit = false;
    public void run()
    while(!exit)
    #perform task(coding whatever u needed)
    public void exit()
    exit = true;
    b) If it is of many threads then we can handle using the instance of the current thread using currentThread() method
    for eg:
    public class exampleThread implements Runnable
    public Thread latest = null;
    public Thread restart()
    latest = new Thread(this);
    latest.start();
    public void run()
    Thread thisThread = Thread.currentThread();
    while( latest == thisThread )
    #perform some tasks(coding part);
    public voi d stopAll()
    latest = null;
    while ( latest == thisThread )
    performOperation1();
    if( latest != thisThread )
    break;
    performOperation2();
    Regards,
    Prathesh Santh.

  • How to stop a running job in 10g Scheduler?

    The following is a duplicate post. I posted the following to the general database forum before seeing that otn has a new scheduler forum:
    I am not able to find in the Admin Guide a method to stop a currently running instance of a job in the 10g scheduler.
    In 9i, I run the following script calling DBMS_JOB.broken and DBMS_JOB.remove to shut down currently running jobs:
    DECLARE
    jobid NUMBER;
    CURSOR c1
    IS
    SELECT job
    FROM dba_jobs
    WHERE priv_user = 'ME';
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1
    INTO jobid;
    EXIT WHEN c1%NOTFOUND;
    DBMS_JOB.broken (jobid, TRUE);
    COMMIT;
    DBMS_JOB.remove (jobid);
    COMMIT;
    END LOOP;
    CLOSE c1;
    END;
    How may I create similar code to shut down currently running jobs using DBMS_SCHEDULER in 10g? According to the Admin Guide, disabling jobs with the force option will still allow the job to finish.
    How can I terminate a running job in 10g?

    You can stop a currently running job using the STOP_JOB api.
    STOP_JOB Procedure
    This procedure stops currently running jobs or all jobs in a job class. Any instance of the job will be stopped. After stopping the job, the state of a one-time job will be set to SUCCEEDED whereas the state of a repeating job will be set to SCHEDULED or COMPLETED depending on whether the next run of the job is scheduled.
    Syntax
    DBMS_SCHEDULER.STOP_JOB (
    job_name IN VARCHAR2
    force IN BOOLEAN DEFAULT FALSE);
    Parameters
    Table 83-44 STOP_JOB Procedure Parameters
    Parameter Description
    job_name
    The name of the job or job class. Can be a comma-delimited list. For a job class, the SYS schema should be specified.
    If the name of a job class is specified, the jobs that belong to that job class are stopped. The job class is not affected by this call.
    force
    If force is set to FALSE, the Scheduler tries to gracefully stop the job using an interrupt mechanism. This method gives control back to the slave process, which can update the status of the job in the job queue to stopped. If this fails, an error is returned.
    If force is set to TRUE, the Scheduler will immediately terminate the job slave. Oracle recommends that STOP_JOB with force set to TRUE be used only after a STOP_JOB with force set to FALSE has failed.
    Use of the force option requires the MANAGE SCHEDULER system privilege.
    Setting force to TRUE is not supported for jobs of type executable.
    Usage Notes
    STOP_JOB without the force option requires that you be the owner of the job or have ALTER privileges on that job. You can also stop a job if you have the CREATE ANY JOB or MANAGE SCHEDULER privilege.
    STOP_JOB with the force option requires that have the MANAGE SCHEDULER privilege.

  • How to stop Parrallell running of same batch jobs

    Dear Experts,
    I have a batch job running every 10 minutes to create and process Outbound Delivery.
    Now, Due to high volume, some jobs may take more than 10 minutes.
    In this case, some times we have 2 jobs running parallely because of the 10 minutes interval.
    How can we stop parrallell running of same jobs?
    I want to stop starting of the next job if the first job is already running.
    Please suggest
    regards,
    Sehtty

    maybe you need to reorganize how you run your jobs, instead of 10 minutes interval you may need to change it to event triggered job run.
    Create a small program B that checks if the job A is running, and that triggers an event in case the job A is not running.
    plan this small program B to run every 10 minutes, change your old job A to run based on the event that is given by the other program.
    Result: if the job A is not running after 10 minutes, then the event is issued and your job A is started.
    if job A is still running after 10 minutes, then no event is triggered, 10 minutes later B is again checking if A is running  and the loop starts again.

  • How to stop a running report in BI Publisher?

    Is there a way to stop a running report/sql in BI Publisher from BI Publisher itself?  ( killing it in database by DBA is one way)
    Thanks
    Ashish

    Yes that is the only option which we can stop a running report in BI Publisher
    I suspect you'll need to ask your DBA to kill the session.
    However, if you have DBA privileges yourself, you can do this by a few methods, some of which are described here:
    http://www.oracle-base.com/articles/misc/KillingOracleSessions.php
    Mark if helps,
    Thanks,

  • Urgent! How to stop a running publication

    Hello all
    We're on CCM 2.0 (still with SP03).
    We have several CATALOG_PUBLICATION_REQUEST jobs running and stopping again immediately with 1 single error message (in SLG1) telling us that the publication of our master catalogue will again be scheduled in 15 minutes.
    We stopped / deleted all those scheduled jobs because it didn't come to an end else.
    Now when trying to publish the catalog, regardless whether initially or only delta/differences or even when trying to cancel the publication request the system tells us that there is already a publication in process.
    Now how to set the system status back so that publication attempts can run again properly?!?
    TIA
    Renaud

    Finally found the solution myself...
    <a href="https://forums.sdn.sap.com/click.jspa?searchID=10950961&messageID=5197763">https://forums.sdn.sap.com/click.jspa?searchID=10950961&messageID=5197763</a>
    BR
    Renaud

  • Event controll: How to stop a running while loop inside a event structure

    Hello,
    I have some problems with controlling a while loop inside a event structure (see attached VI).
    I habe 3 buttons ("Start Measurement, Stop Measurement, Quit Program"). When a measurement is running, it should be possible to stop the measurement by clicking on "Stop Measurement", but this does not work.
    Has anyone an idea?
    Thanks a lot and best regards,
    Michael
    Message Edited by MichaGue_01 on 04-23-2010 04:37 AM
    Solved!
    Go to Solution.
    Attachments:
    Event_Controll.vi ‏27 KB

    Hello,
    Try not to use while loops inside a Event structure.
    My approach is using two While loops (one will have only the Event structure).
    I had to use to Flag buttons that make it a bit more complicated but i am sure somebody will come up with a better idea, or you might want to have a think about it yourself.
    Have a look on the modified version on the attachment.
    Once you are happy how it works then you can Hide the 2 flag buttons from the Front Pannel by going to Block diagram right-click the indicators and choose option "Hide Indicators/Controls"
    I did it in LV 8.6 so i hope you can open it on your PC if not i can downgrade it.
    If you have any problem let us know.
    Regards
    Dimitrios
    Test Systems Computing Engineer
    Cummins Turbo-Technologies
    Attachments:
    Event_Controll[1]_modified.vi ‏18 KB

  • How to stop programs running in backroune, how to stop programs running in backround

    My mac book pro is running slowly.  I was told it was because of programs running in backround.  How do I stop them.

    First, back up all data immediately, as your boot drive may be failing.
    If you have more than ten or so files or folders on your Desktop, move them, temporarily at least, somewhere else in your home folder.
    If iCloud is enabled, disable it.
    Disconnect all wired peripherals except keyboard, mouse, and monitor, if applicable. Launch the usual set of applications you use when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Activity Monitor in the page that opens.
    Select the CPU tab.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Step 2
    You must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way as above. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Post the 50 or so most recent messages in the log — the text, please, not a screenshot.
    Important: Some personal information, such as your name, may appear in the log. Edit it out before posting.

  • How to stop a running process

    If I have a class
    class MyTest{
    public void start(){
    int count=0;
    while(true)
    System.out.println(count);
    ++ count;
    class TestRun{
    public static void main(String[] args)
    MyTest test = new MyTest();
    test.start();
    My question is is there a programatic way to stop MyTest counting in TestRun ? except of course by assigning it a null value;

    First of all what you have is not a process -- it's a thread. Separate processes each have their own memory, but threads share the memory with the other threads in the process.
    Second, I don't see any reference that you could set to null to stop the thread. Were you thinking of setting your local reference to the thread to null? That will only set that particular reference to null, and will not affect the thread.
    You could call stop() on the thread to stop it, but doing so is unsafe.
    The best solution is for the thread to continually check some flag to determine if it should keep running. The loop should continue only while that flag is true.

  • How to stop apps running in background

    I tried reinstalling MS Office 2011 but cant stop an app running in the background. It needs to stop prior to the install and I cant stop it.

    Install Basics for Office 2011
    Not only should Safari be quit but all browsers and hidden Microsoft processes like the Microsoft Database daemon and SyncServicesAgent. To disable these applications:
    Log Out/In
    Log out under the Apple in the Menu bar
    Log in and hold down the Shift key (this disables all startup items including the hidden ones)
    Restart after installing updater
    Note for the MAU and MERP updaters you do NOT have to restart after updating. These are found in the root Library:
    /Library/Application Support/Microsoft/
    Why Restart?
    The Restart after updater will force a file that stores the version info to update. This should happen automatically but sometimes it doesn't. The next updater will fail and you will have to re-install Office. The restart is a quick step that will save time in the long term.

  • How to stop the running VSTO application

    Hi,
    I want to stop my Word/Excel 2010 C# VSTO application. 
    Is there any way to stop it by clicking on a button on the same application, command line option or keyboard shortcut.
    Thanks in advance.

    Hi,
    As your issue is related to VSTO, I'm moving your post to the VSTO forum for better supports. Thanks for your understanding.
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=vsto
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I used to be able to turn off my apps by holding down the icon but since the update it wont work. have they changed how to stop them running

    I used to be able to turn off my apps by holding down the icon and then it would turn off, now when I do the same thing nothing happens. Have they changed the way you turn off apps since the new update.

    Double tap the home button and swipe upwards on the preview of the App (not the App Icon).
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf

  • Workflow infinite loop how to Stop?

    hi,
    My workflow is having a loop it runs infinite bcos the condition is not proper. Inside the loop i have a send mail step.. How to stop the Running workflow???
    Regards
    Roops

    Roop,
    It seems that the loop condition is a workflow step and not something in the method code.
    For active instances of this workflow you will have to manually intervene. There can be 2 options -
    1. Open the workflow log and change the container values such that it comes out of the condition
    2. Logically delete the workflow.
    Hope this helps

Maybe you are looking for