Wait for 3 minutes and then run another method

I'm calling a JMS service lets say runProgress() the method adds a new row into a database then waits for 3 minutes and then runs another method that removes the row from the table.
I was thinking about this, and thought that I could create a new Thread, let it wait for 3 minutes and the run the other method.
The thing is what happens if there are 10.000 users running this at the same time, then there would be 10.000 Threads, wouldn't it be a hevy load on the server.
Is there any other way?? Suggestions?

What do you think about if there are massive, like
10.000+, queue's in memory, this would be slow down
for the server, right? or isn't it a trouble?you don't need 10.000 queues - just one single queue. you may have a lot of objects in the queue but this is at most a memory problem - depends on the size of the information you need.
maybe i was not clear enough: you have a single queue where the tasks are put into. then there are other threads (at least 1) that read from the queue and perform actions.
One option, that I don't know how to do yet but
thinking about it, is to let the database have some
kind of a procedure that would run after 3 minutes,
but I guess that I were only moving the memory trouble
from the app-server to the database. (hope you
understand me)yes, i think so.
So it would be just as good to do this in the
app-server as in the database, what do you think?a good idea. typically with all these optimization issues you just have to try out. otherwise you won't know the result.
robert

Similar Messages

  • Hey guys my iphone 5 sync and at step 6, it say waiting for changes and then it cancel syncing.

    hey guys my iphone 5 sync and at step 6, it say waiting for changes and then it cancel syncing.

    You meant iTunes 11.1.2?
    Try disable anti-virus and firewall and try again. You can switch back on after you've finished.

  • HT201407 iMessage "unable to activate, please try again".    Whenever I go to activate imessage is says waiting for activation and then about 5 mins later says activation unsuccessful, please try again. This is driving me mad! It's been 2 days now!!

    Lease help me to activate imessage. I now have iPhone 5s and can't activate imessage. I've tried all the normal stuff but nothing is working

    i had this problem with my iphone 5c and sorted it contacting apple.
    have you tried resetting the network settings? it doesnt delete anything and should work. if it then changes to "waiting for activation", instead of the error message, then leave it for 24 hours (leaving your phone and wifi on) and it should activate and work.
    for me, this didnt work after 24 hours. i then backed up my phone and reset it and set it up as a new iphone then restored it using my backup from the computer and it now works

  • My PowerBook G4 says that it's connected to wifi, but it still no internet connection. The connection will work for a while, and then I'll have to run diagnostics and it will work again for a few minutes and then stop working again. What's going on??

    My PowerBook G4 says that it's connected to wifi, but it still no internet connection. The connection will work for a while, and then I'll have to run diagnostics and it will work again for a few minutes and then stop working again. What's going on??

    Basic troubleshooting techniques for any problem
    Restart the computer = joy?
    Reset the router = joy?
    Restart the computer in Safe Mode = joy?
    ask yourself "What changed immediately preceding the onset of the problem?" = Anything... hardware, software, cabling, environment (interference source)
    ÇÇÇ

  • I am using Iphone 5. Since the last 3 weeks the phones has been acting weird. on dialling a call it get hung on disconnecting it stays on the call ending screen only. this happens for atleast 5 to 7 minutes and then it gets to normal

    I am using Iphone 5. SInce the last 3 weeks the phones has been acting weird. on dialling a call it get hung on disconnecting it stays on the call ending screen only. this happens for atleast 5 to 7 minutes and then it gets to normal or the other way is to turn the device off and then turn it on. the phones also running slow and therefore at times becomes very cumbersome. a few of my friends have also been having the same problems.
    I have taken the phone to the service outles but the best they did was to reboot the phone it works fine for a day or two but again the same issue.
    Can anyone share any info on it?

    I'm glad to hear that they replaced your phone. Any experience I have had with Apple customer service and/or Genius bar has been extremely positive. While I have had positive outcomes from trouble with other phones in the past, they are not as quick and  friendly. I had a Motorola phone and a Samsung phone go bad several years ago and warranty work through AT&T required that I wait for a replacement unit and then mail back the original unit to keep from being charged for the device. This usually meant almost a week without a phone. Nice to walk into Apple and walk out with a replacement device. Enjoy your phone.

  • HT3371 When I plug in the computer to charge, the light is green for a minute and then turns red and the plug gets very hot.  It's not the plug as it works on other computer.  Why won't my computer charge?

    When I plug in my MacBook Pro to charge, the light is green for a minute and then it turns red and the plug gets very hot.  The plug works fine on another computer and charges it.  Why won't my MacBook Pro charge?

    You performed all of the steps outlined in this link?
    http://support.apple.com/kb/TS1567
    You uninstalled and reinstalled iTunes?
    GB

  • I have a macbook pro core i7 mid 2012 And update to the latest version 10.8.4 system after updating the system I have the problem appeared to take off the device and stops at the apple logo for about 5 minutes and then enters the desktop How can I solve t

    I have a macbook pro core i7 mid 2012
    And update to the latest version 10.8.4 system after updating the system I have the problem appeared to take off the device and stops at the apple logo for about 5 minutes and then enters the desktop How can I solve this problem and thank you

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console 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.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    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. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Select the messages logged after the boot, during the time something abnormal was happening. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    For example, if the problem is a slow startup taking three minutes, post the messages timestamped within three minutes after the boot time, not before. Please include the BOOT_TIME message at the beginning of the log extract.
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the entire contents of the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • My iPad mini freezes every 2 minutes and it takes another 2 minutes for it to respond again.

    My iPad mini freezes every 2 minutes and it takes another 2 minutes for it to respond again, after it freezes the screen goes black and after 2 minutes the pass code screen comes up then the cycle begins again. My iPad is fully charged and I have closed all of my apps. Please help.

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • Why my Firefox always lack and why I have to wait for minutes to open a page?

    Dear customer support officer,
    Why my Firefox always lack after I have update with Window 7 Service Pack 1? ... and why I have to wait for minutes to open a page?
    I discovered from the "Task Manager", every time when Firefox is lack, it took up 100% of my "CPU Useage".
    Below, kindly find my version spec for your investigation convenience. Many thanks in advance for your prompt support : )
    Sincerely yours,
    Charmayne
    Application Basics
    Name
    Firefox
    Version
    5.0
    User Agent
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
    Profile Directory
    Open Containing Folder
    Enabled Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Better Facebook!
    5.852
    true
    [email protected]
    Java Console
    6.0.20
    true
    {CAFEEFAC-0016-0000-0020-ABCDEFFEDCBA}
    Java Console
    6.0.22
    true
    {CAFEEFAC-0016-0000-0022-ABCDEFFEDCBA}
    Java Console
    6.0.23
    true
    {CAFEEFAC-0016-0000-0023-ABCDEFFEDCBA}
    Java Console
    6.0.24
    true
    {CAFEEFAC-0016-0000-0024-ABCDEFFEDCBA}
    Java Console
    6.0.26
    true
    {CAFEEFAC-0016-0000-0026-ABCDEFFEDCBA}
    RealPlayer Browser Record Plugin
    14.0.3
    false
    {ABDE892B-13A8-4d1b-88E6-365A6E755758}
    Modified Preferences
    Name
    Value
    accessibility.blockautorefresh
    true
    accessibility.typeaheadfind
    true
    accessibility.typeaheadfind.flashBar
    0
    browser.history_expire_days.mirror
    180
    browser.places.smartBookmarksVersion
    2
    browser.startup.homepage
    http://www.google.com/webhp?hl=en
    browser.startup.homepage_override.buildID
    20110615151330
    browser.startup.homepage_override.mstone
    rv:5.0
    browser.tabs.loadInBackground
    false
    dom.disable_open_during_load
    false
    extensions.lastAppVersion
    5.0
    keyword.URL
    http://mystart.incredimail.com/?loc=ff_address_bar&a=ICetqQnqJ0&search=
    network.cookie.prefsMigrated
    true
    places.database.lastMaintenance
    1311818987
    places.history.expiration.transient_current_max_pages
    64401
    places.last_vacuum
    1298980389
    print.print_printer
    Microsoft XPS Document Writer
    print.printer_Microsoft_XPS_Document_Writer.print_bgcolor
    false
    print.printer_Microsoft_XPS_Document_Writer.print_bgimages
    false
    print.printer_Microsoft_XPS_Document_Writer.print_command
    print.printer_Microsoft_XPS_Document_Writer.print_downloadfonts
    false
    print.printer_Microsoft_XPS_Document_Writer.print_edge_bottom
    0
    print.printer_Microsoft_XPS_Document_Writer.print_edge_left
    0
    print.printer_Microsoft_XPS_Document_Writer.print_edge_right
    0
    print.printer_Microsoft_XPS_Document_Writer.print_edge_top
    0
    print.printer_Microsoft_XPS_Document_Writer.print_evenpages
    true
    print.printer_Microsoft_XPS_Document_Writer.print_footercenter
    print.printer_Microsoft_XPS_Document_Writer.print_footerleft
    &PT
    print.printer_Microsoft_XPS_Document_Writer.print_footerright
    &D
    print.printer_Microsoft_XPS_Document_Writer.print_headercenter
    print.printer_Microsoft_XPS_Document_Writer.print_headerleft
    &T
    print.printer_Microsoft_XPS_Document_Writer.print_headerright
    &U
    print.printer_Microsoft_XPS_Document_Writer.print_in_color
    true
    print.printer_Microsoft_XPS_Document_Writer.print_margin_bottom
    0.5
    print.printer_Microsoft_XPS_Document_Writer.print_margin_left
    0.5
    print.printer_Microsoft_XPS_Document_Writer.print_margin_right
    0.5
    print.printer_Microsoft_XPS_Document_Writer.print_margin_top
    0.5
    print.printer_Microsoft_XPS_Document_Writer.print_oddpages
    true
    print.printer_Microsoft_XPS_Document_Writer.print_orientation
    0
    print.printer_Microsoft_XPS_Document_Writer.print_pagedelay
    500
    print.printer_Microsoft_XPS_Document_Writer.print_paper_data
    1
    print.printer_Microsoft_XPS_Document_Writer.print_paper_height
    11.00
    print.printer_Microsoft_XPS_Document_Writer.print_paper_size_type
    0
    print.printer_Microsoft_XPS_Document_Writer.print_paper_size_unit
    0
    print.printer_Microsoft_XPS_Document_Writer.print_paper_width
    8.50
    print.printer_Microsoft_XPS_Document_Writer.print_reversed
    false
    print.printer_Microsoft_XPS_Document_Writer.print_scaling
    1.00
    print.printer_Microsoft_XPS_Document_Writer.print_shrink_to_fit
    false
    print.printer_Microsoft_XPS_Document_Writer.print_to_file
    false
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_bottom
    0
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_left
    0
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_right
    0
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_top
    0
    privacy.sanitize.migrateFx3Prefs
    true
    security.default_personal_cert
    Select Automatically
    security.warn_viewing_mixed
    false
    Graphics
    Adapter Description
    NVIDIA GeForce G102M
    Vendor ID
    10de
    Device ID
    0873
    Adapter RAM
    512
    Adapter Drivers
    nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
    Driver Version
    8.15.11.8631
    Driver Date
    7-1-2009
    Direct2D Enabled
    Blocked on your graphics driver. Try updating your graphics driver to version 257.21 or newer.
    DirectWrite Enabled
    false (6.1.7601.17563, font cache n/a)
    WebGL Renderer
    (WebGL unavailable)
    GPU Accelerated Windows
    0/1

    upgrade your browser to Firefox 8 and check
    * getfirefox.com

  • My ipod shuffle is showing up when plugged into my computer. Also, isn't the orange light suppose to stay on until charged. Mine lights orange for a minute and then goes off.

    my ipod shuffle is showing up when plugged into my computer. Also, isn't the orange light suppose to stay on until charged. Mine lights orange for a minute and then goes off and also it wont be recongnize by my computer .please help

    I'm having the same problem.  I'm using a new shuffle usb cable in my 2nd generation shuffle and nothing shows up on computer.  I'm wondering if the dock for the second gen is different than the new usb cable direct into the 2nd gen shuffle. I don't have a dock for it.  Before I buy one on ebay I hope someone can assist.

  • I have purchased two audiobooks from iTunes. They play perfectly for about 13 minutes and then abruptly stop. I have purchased other audiobooks and have not had a problem. Please, any ideas on why this is happening and what can I do to fix it.  Thanks!

    I have purchased two audiobooks from iTunes. They play perfectly for about 13 minutes and then abruptly stop. I have purchased other audiobooks and have not had a problem. Please, any ideas on why this is happening and what can I do to fix it.  Thanks!

    As long as you use your computer like King Penguin stated for Report a Problem, you should be fine. If you can't get to your computer, are not using your computer, or your computer is not longer in the mix since you have been using your iPad, email iTunes support about the problem.
    http://www.apple.com/emea/support/itunes/contact.html

  • I just got the 5s, every time in try to update my apps it's asking for a second password to an Apple ID that is not mine-- it asks for mine and then another one pops up after I enter mine .what do I do?

    I just got the 5s, every time in try to update my apps it's asking for a second password to an Apple ID that is not mine-- it asks for mine and then another one pops up after I enter mine .what do I do?

    where did you get this phone from

  • When trying to Airplay from my Macbook Pro Retina, to AppleTv3 it plays for only a few minutes, and then jumps back to the Mac. It seems to do this no matter what I play, music, movies or pictures. I just bought a new router. This could affect it

    When trying to Airplay from my Macbook Pro Retina, to AppleTv3 it plays for only a few minutes, and then jumps back to the Mac. It seems to do this no matter what I play, music, movies or pictures. I just bought a new router. This could affect it.
    I have been playing whole movies before from VLC without problems.
    Any Ideas?

    Welcome to the Apple Community.
    Yes it's network issues or settings that cause these types of problems most of the time.
    The following article(s) may help you.
    Troubleshooting AirPlay
    Troubleshooting Wi-Fi networks and connections
    Recommended Wi-Fi settings
    Wifi Diagnostic Software (for Mac users)
    You may also find some help on this page, where I’ve collected some of the more unusual solutions to network issues.

  • I can start my iPod but it will only stay on the Apple icon screen for 5 minutes and then shuts off, what do I do to fix this problem?

    I can start my iPod but it will only stay on the Apple icon screen for 5 minutes and then shuts off, what do I do to fix this problem?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar

  • Problem with my touch screen. It works for 1 or 2 minutes and then it doesn't work for 2 or 3 minutes !!

    hi everybody
    I have a problem with my touch screen. It works for 1 or 2 minutes and then it stops working for 2 or 3 minutes, this is a loop ! if I don't use for a couple of hours it will work more, about 15 minutes and then stops working !!! whats wrong with may iphone, which part is damaged ?:(
    ( when touch screen stops working, all keys work correctly, home key & others )
    please help me

    oh
    finally problem solved
    the finger touch part was damaged, they replaced it with a new one and now I have my iphone 4g as it was at first, brilliant like always

Maybe you are looking for

  • Problem with SubmitButton name across screens, which use the same action?

    I am using multiple submit buttons in a single JSP. The problem i am using the same action across 4 screens, and excpet the 1st screen the remaingin 3 screens have BACK & Continue button, in every page the click of back button should take back to the

  • Since upgrading to Mountain Lion LibreOffice keeps asking for Java and crashing.

    Java is needed only for Base which I don't use, so I disable Java in LibreOffice preferences, but it keeps asking if I want to enable it. In addition the preferences aren't  being remembered so sometimes LibreOffice crashes when I start to do anythin

  • Calling stored procedure via java

    Hi all, i have a problem calling a stored procedure in my java code. I found an example at OTN which seems not to be correct. I know there had been a lot of posting regarding this isue but i did not find the solution. I had the following VB-code to t

  • Result Cache in business service

    Lets say I have two operation in the business service operation1 and operation2. I want to cache operation1 but not operation2. Can I do this with Result Caching? I have tried to put this expression fn:string($operation)='operation1' in cache token e

  • Captivate 5.5 Resume on a specfic screen

    I am developing a course that users will need to access over a period of time and for different uses. I want the course to open on a "Welcome Back" screen when they resume the course with updated instructions. Is this possible?  I've looked for a wid