Ow can i implement some method to perform task even if the user close

Dear All
I have a process need long time to complete , now how can i implement some method to perform this task even if the user close the browser??
e.g
if i have a button to update some value on one million recode which will take about 1 hour, is there a way to complete this update even if the user close his browser?

Jaber,
Sure, that works just fine too (having a Java application running). In order to "notify" it to run something, you can use whatever technology you like; if I were doing it, I'd probably use something like JMS backed by Oracle AQ to queue up tasks for it to do, however, that's just personal preference. You would have to design something that meets the needs of your particular use case. Perhaps another way would be to run it as a database job, in which case you can use the database scheduler to run it. There are probably one million and four different ways of doing it - the one you choose would depend upon your requirements and the technology you are comfortable with.
John

Similar Messages

  • Can anyone offer some advice i am looking to upgrade the OS system on one of my macbook pro's, currently running os10.4.11, I would like to upgrade to OS10.5? how would I go about this, and is there a cost, for what is an old operating system now?

    Can anyone offer some advice i am looking to upgrade the OS system on one of my macbook pro's, currently running os10.4.11, I would like to upgrade to OS10.5? how would I go about this, and is there a cost, for what is an old operating system now?

    Since your Mac probably came with 10.4, there is no longer a way to get 10.5 Leopard install media. IF it has the requirements, you may be able to upgrade to 10.6 Snow Leopard by buying the boxed install media at the Apple Store for $30.
    System requirements are found here: http://support.apple.com/kb/SP575
    General support can be found here: http://www.apple.com/support/snowleopard/

  • HT5622 i moved from Egypt to Canada, changed my info on app and still can't get some app because " item not available in the Egyptian store"

    i moved from country to another, changed my info in app ID and still can't get some apps because  item not available in the home country's store? any idea?

    It is working now. I no longer get the message about the item not being available in the US and I can access the store.

  • I can look at some photos not in iPhoto. it's the photo I made with my digital camera Lumix ... what can I do?

    I can look at some photos not in iPhoto. it's the photo I made with my digital camera Lumix ... what can I do?

    I want to look my photos again.

  • I have iphone 4 and have never updated itsince i've bought it. now i would like to update it to iOs 7. maybe can i have some problems in doing this due to the fact that i've never updated it until now?

    I have iphone 4 and have never updated itsince i've bought it. now i would like to update it to iOs 7. maybe can i have some problems in doing this due to the fact that i've never updated it until now? thanks in advance for every reply

    Did you follow this article to update your phone?
    iOS 4: Updating your device to iOS 5 or later
    iOS: How to update your iPhone, iPad, or iPod touch
    If your device has modified software installed (jailbreak), you might get problems using the phone after updating it.

  • I just bought a new Motorola modem. Do I need to reconfigure my Airport Express? For some reason we have WiFi even though the amber light is blinking.

    I just bought a new Motorola modem. Do I need to reconfigure my Airport Express? For some reason we have WiFi even though the amber light is blinking.

    Typically, when changing out networking hardware, it is always a good idea to perform a complete power reset of all of your networking equipment.
    I would recommend that you do the following as a minimum:
    Power-down the modem, AirPort base station, and computer(s).
    Power-up the modem; wait at least 10-15 minutes to allow it adequate time to initialize.
    Power-up the AirPort base station; wait at least 5-10 minutes. Note: The AirPort's status light may continue to flash amber after it has intialized. That is because, there may be some additional configuration items necessary, like setting up wireless security, before the overall setup is completed to get a green status.
    Power-up your computer(s).
    If the above steps do not solve the problem, start over with step 1 above, but then perform the next steps between steps 1 & 2. above.
    Disconnect the AirPort base station from the Internet broadband modem.
    While all of the devices are powered-down, perform a "factory default" reset on the base station. This will get it back to its "out-of-the-box" configuration and make setting it up much easier, especially if you use the "Assist me" process within the AirPort Utility. (ref: Resetting an AirPort Base Station or Time Capsule)
    After the base station resets, go ahead and power it back down.
    Reconnect the AirPort base station to the Internet broadband modem. For the Extreme and Time Capsule, be sure to connect the cable to the base station's WAN (circle-of-dots) port.
    Continue with step 2 in the first set of steps.
    In this basic configuration, the AirPort base station will broadcast an unsecured wireless network with a Network Name (SSID) of Apple Network NNNNNN. Network clients, connected to the base station either by wire or wireless, should now be able to access the Internet through the ISP's modem. Once Internet connectivity has been verified, you can use the AirPort Utility to configure the base station for wireless security and any other desired options. Please post back your results.

  • Can responses be saved even if the user abandons the form?

    Can responses be saved even if the user does not click submit and abandons the form?
    SurveyMonkey does this and it is very useful, especially for longer surveys, where users might abandon the survey without completing it. SurveyMonkey seems to do it when the page is advanced.
    I hope this is possible.
    Looking forward to your help,
    Carl

    Thanks for pointing out that request. It is similar but not the same.  I've added a comment there.  The difference is that the other request is for the users to be able to click a save while  I'm asking for the form to automatically save partial responses to the server. Similar requests, but not identical.  I think this is worthy of being tracked as a separate enhancement request in the product backlog.
    Thank you,
    Carl

  • I    have a new name and I can not verify my account.  How do I validate the user name?

    I have a new name and I can not verify my account.
    How do I validate the user name?

    Hello lirom12,
    Check out the article below to get your Apple ID verified so you can use it. You would need to send an email to get it verified. 
    If you didn't receive your Apple ID verification or reset email
    http://support.apple.com/kb/TS5404
    Regards,
    -Norm G. 

  • How can flex tell if  it's a mouseup event when the user releases the mouse button outside the flex application?

    how can flex tell if it's a mouseup event when the user
    releases the mouse button outside the flex application? Say for
    instance mousedown was done within a 500x500 embedded flex app but
    mouseup is outside or relased on the HTML background. One more
    thing, when we have something draggable, Flex doesn't execute the
    stopDrag() when the user releases the mouse button outside the
    embedded swf or fles app. Pls. help me with this. Thanks!

    I don't think the flex app can tell what happens outside the
    app. But it can detect when it leaves the app, so I have found the
    following line works fine inside initApp():
    this.stage.addEventListener(Event.MOUSE_LEAVE, yourFunction);
    and you have to:
    import flash.display.Stage;
    Doug

  • Can I lock a course if the user closes it before the end?

    So if I have a 10 question quiz and if on question 5 the user closes the course can I lock them out?

    Sure. Set the LMS not to allow them any more than a single attempt on the module. The Captivate content doesn't control this.

  • I can't delete an entry on my phone calls. The app closes

    After updating to IOS 7.1, I can't delete an entry on my phone calls. The app closes, and after reopening, the deleted phone call still there.
    I already reintal IOS and made the restore, but no success
    Anybody can help on that ?

    OK, everyone, I did it at last!
    Did it the old fashioned way, which is how most of you told me to do it anyway, and it finally worked. I don't understand why it's not been working, but hey ho!
    Thank you for all your help.
    Photos>select album>revert>apply. Simples but didn't want to work this morning.
    THANKS!

  • How can I invoke a method on a subclass based on the runtime type?

    Hi all,
    I have defined a base class OrderDetail, and 2 subclasses which extend it: OrderDetailSingleReservation and OrderDetailMonthReservation. Furthermore, I have a method:
        public Order order_generate(OrderDetail orderDetail) {
            if (orderDetail instanceof OrderDetailSingleReservation) {
                return order_generate((OrderDetailSingleReservation) orderDetail);
            }  else if (orderDetail instanceof OrderDetailMonthReservation) {
                return order_generate((OrderDetailMonthReservation) orderDetail);
            } else {
                Misc.alert("orderAndInvoice_Generate(GENERIC): unsupported type.");
                return null;
        }The type of this method's parameter is OrderDetail, as you can see. (This particular method only serves as a kind of dispatcher and is therefore not very interesting in itself, but the same pattern using 'instanceof' occurs in a codebase I am working on several times, and I would like to factor it out if possible.)
    My question: it seems that the invocation of order_generate() from within this method requires an explicit downcast to one of the two subclasses. If not, java invokes the method on the superclass. But at runtime, the JVM knows what type of object it is dealing with, right? So is there no way to do this without the explicit downcast?
    A similar problem occurs when trying to invoke a method on an object whose type is one of the subclasses; the method on superclass is called, instead of the one in the appropriate subclass that overrides it.
    Any help would be greatly appreciated!
    Thanks,
    Erik

    Thanks for your replies! I was editing my post last night to clarify it, but my connection went down and the edit was lost :(
    Anyway, yes, it should be done with polymorphism. I was constructing an example using the famous Animal, Cat and Dog classes to demonstrate my question more clearly, and to my surprise the problem does not occur in my example code.
    LRMK: Invoking a method such as in your example, where the method is inside the class itself, works fine. However for MVC's sake, I have a separate class called Invoicing with methods as below:
    class invoicing
      // the method for the superclass
      public Invoice invoice_create(OrderDetail orderDetail) {
         System.out.println("type: " + orderDetail.getClass());
         return null;
      // the method for one of the subclasses (this method is being not invoked)
      public Invoice invoice_create(OrderDetailSingleReservation orderDetail) {
         return null;
      // ...nor is this one.
      public Invoice invoice_create(OrderDetailMonthReservation od) {
         return null;
    }Now I attempt to invoke these methods:
    // create example objects
    OrderDetailSingleReservation odSingle = new OrderDetailSingleReservation();
    OrderDetailMonthReservation odMonth = new OrderDetailMonthReservation();
    // this call displays "odSingle type: OrderDetailSingleReservation"
    System.out.println("odSingle type: " + odSingle.getClass());
    // this call displays "odMonth type: OrderDetailMonthReservation"
    System.out.println("odMonth type: " + odMonth.getClass());
    // this call invokes Invoicing.invoice_create(OrderDetail)
    // instead of Invoicing.invoice_create(OrderDetailSingleReservation)
    Invoicing.invoice_create(odSingle);
    // this call invokes Invoicing.invoice_create(OrderDetail)
    // instead of Invoicing.invoice_create(OrderDetailMonthReservation)
    Invoicing.invoice_create(odMonth);So these calls will invoke the method for the superclass, i.e. Invoicing.invoice_create(OrderDetail od). That method then then executes the System.out.println() call which displays the class type of its parameter as one of { OrderDetailSingleReservation | OrderDetailMonthReservation }, that is, the expected subclass types!
    So the dynamic dispatch isn't working the way I would expect it to. If I do the explicit if-else checking using instanceof, as described in my first post, the correct methods are called.
    I hope the problem is somewhat clearer now. I am a bit lost as to what might be causing this, or how to monitor what's going on inside the jvm. Any ideas? BTW, the OrderDetail class and its subclasses are JPA entities (though I don't think it should matter).
    Thanks!
    Erik

  • Windows media Player suddenly can't read some of my MP3, and only with one user account !!!

    Hi!
    here is my problem:
    I have a lot of MP3 in my W7 personnal computer at home. I read MP3 everyday with WMP and all was working fine, until some days ago. Some of my MP3 can't be read by WMP. I've looked at their properties, but there is nothing wrong, compared to others
    MP3 that I can read.
    The "unreadable" files are correctly read by VLC. So they are not corrupted.
    When I swtich to an other user, the same MP3 are read correctly with WMP. (Both usersd are admins)
    My MP3 are présents on two computers at home. When I connect from my second computer with a
    \\computername\c$, I can read these files. So the files are definitivly OK. But when I connect from my first computer to the second one, I can't read the MPS that have the same name! it's absolutely strange!
    I've tried to uninstall WMP, to delete all files related to WMP in my Appdata folder, I have even tried the FixIt from Microsoft, but any of these steps were helpful.
    I've copied the "unreadable" files from the Music folder to my desktop, allways the same issue.
    I've disabled my Antivirus, but without any results. I've tried the system restore, idem.
    My computer is running W7 32 bits, SP1, all updates installed regularly.
    Please help me, I want to understand what has happened!!! :)

    Hi Yolanda,
    the error message is inside a popup: (French trnaslation) "Windows media Player encountered an error and will close." I have the choice beetween "CLOSE" and "HELP ON THE WEB".
    Of course the "help" is totally useless....
    I don't see any troublshooter related to "media player". The only troubleshooter where I can choose Media player is for the "compatibility mode", so it's not helpful. On the "audio and devices" troubleshooter I see "read
    a DVD with Windows Media Player", but that's not my case.
    I've already done the last step. I copy the MP3 from my second computer to the "problematic" one, and I can't read my file. But, on the second computer, i can read this MP3 so the issue is ONLY when I try to read this file with my Windows session.
    (in the same computer, with the administrator session, I can read all the files).
    To put it in a nutshell:
    on computer A logged as CEDRIC i can not read the mp3 called SUPERSONG (it's an example lol)
    on computer A logged as administrator, I can read the SUPERSONG
    on computer B logged as CEDRIC (other local account but same name) I can read the SUPERSONG mp3 that is present in the music Library (that is not the same file, but it's a file with the same name, and of crouse this is the same song). (all my MP3 are copied
    from computer A to computer B in case of failure on one of the computers)
    on computer A logged as CEDRIC, if I do a
    \\computerB\c$\...\SUPERSONG I can not read it.
    I know this is complicated to explain, but if I ask to the Microsoft community that is because I don't know what to do ;) ;) ;) 

  • How can I add an iPad to Apple Configurator without losing the user's settings, folders, etc?

    When attempting to add an iPad that has already been in use (for some time) by a particular user into Apple Configurator, I end up having to either wipe the iPad entirely as if it is a new iPad, or restore the user's settings and configuration from iCloud during mini-setup. It seems to be one choice or the other.
    Is there a way to add the "old" iPad into Apple Configurator for management purposes yet still be able to restore the user's settings from iCloud? That is - items like: folders, pictures, email settings, app data?

    nsdjoey wrote:
    theAntioch wrote:
    This isnt true. Connecting an unsupervised device to configurator and supervising it will wipe the device, there is no way around that. You can attempt an iCloud restore from here, but anything not backed up prior to supervising the device will be erased when supervising it. I have never tried to restore data from an unsupervised iPad so I have no clue if everything will come back.
    Let me clarify... You can successfully restore an iCloud backup of an unsupervised iPad to a new (i.e. different) iPad and have it Supervised with data intact. The process below will allow Configurator to Supervise a device without wiping it when an iCloud backup from a different unsupervised iPad is restored to it.
    Try it… Get 2 new unsupervised iPads… we'll call them iPad "A" and iPad "B." Take iPad "A" and install a few apps, take a few photos, change the background, create a new document in Pages, etc. Run an iCloud backup of iPad "A" using your Apple ID. This is our unsupervised backup of iPad "A."
    Now take new unsupervised iPad "B" and start running through the setup assistant. When you get to the restore screen, choose to restore from iCloud backup. Log in with your Apple ID. Select the backup for iPad "A." The backup will restore and then the iPad will restart. Once it restarts, you get to a "Hello" screen on the iPad. At this point, plug the iPad into your Configurator computer. On the Prepare screen, turn Supervision ON and select "Don't restore backup." Click Prepare.
    Configurator will not wipe the iPad. It will run through the supervision process but not wipe it. Once complete, you'll see that iPad "B" is now exactly the same as iPad "A", but if you go to Settings -> General -> Profiles on iPad "B" you will see a Supervision profile installed.
    The key here is to use a different iPad from the originally backed up iPad. You can't restore the backup of iPad "A" to iPad "A" again and supervise it without wiping it. But you can take the backup of unsupervised iPad "A" and restore it to iPad "B" and retain apps, data, and settings of iPad "A" but with the Supervision profile.
    Hope this clarifies things!
    ~Joe
    I see where your going with that. I dont have any way to reproduce this scenario in my environment, but I will take your word for it that this works. I have only ever plugged in an unsupervised device to configurator and gone through the setup, which always wipes the device. If your saying theres a way around that you should give that a shot OP.

  • How can I see for a particular TCode who were all the users who ran it ?

    I want to see who were all the users who ran a particular TCode e.g ZVPT today? Can I also do the same thing to see which users ran a particular program today?

    Hi,
      Use tcode STAD.
    Pls. reward if useful....

Maybe you are looking for

  • Error in installing ABAP 7.2 trial version

    Hi friends, I tried installing ABAP 7.2 trial version in my laptop with Windows Vista Home Basic edition. The installation gives an error in the "Execute" step in Phase 18 "Perform MaxDB Post load activities". The following is the error. An error occ

  • Dynamically loaded data in Auto Suggest

    I'm loading data from the server with PHP for the AutoSuggest Widget. Everything works great (and fast!). Is there a way to add an additional URL parameter to the one that is created for the AutoSuggest Widget (by default "prd")? It obviously won't w

  • Multiple web pages in Lightroom 3

    Basically am i missing something really obvious here? I want to put togeather using the Lightroom web facility a small image based website with the maximum of five pages - is this possible? I see that it's easy enough with two (one page of the image

  • Timed Out , OK i wanna instal the firmware instead !!

    After 10 times of downloading the ios 5 .. and getting the " it's timed out " thing .. I downloaded the firmware for my iPod 4G .. I JUST CAN'T INSTALL IT ! .. I Click it and there is no changes .. HELP PLZ it been hours ..

  • Status of part query help

    Hi, I have a part, and it can be received, accepted, rejected, corrected and shipped. This is held in the status field. It is on the line level, so each part also has a line number associated with the transactions status, i.e. Part PO Line Status 123