Call an other servlet to run in the background?

I have a servlet which is use to save some forms and after redirect to a thankyou page and send an thankyou email. I don't know whats happen with the email server (they did some modifications and now it is work very slowly). I want to split the servlet in tow and the one which have to send emails to run in background. It is possible?

How can I spawn a thread from a servlet?
I have no ideea to do this, can you give me a sample of code?
thanks
Calin

Similar Messages

  • I want thunderbird to run in the background when i call the default email client

    I have software that sends emails out for reports. The software calls the default mail client (Thunderbird) and sends the email. However this opens Thunderbird and gets in the way. Is there anyway that this could send the email without opening Thunderbird? Can it run in the background like outlook express? It needs to close after email is sent.

    Try with "Minimize to Tray" Add-ons
    *https://addons.mozilla.org/en-US/thunderbird/search/?q=minimize+to+tray

  • Calling a VI to run in the background

    Hey, can anyone help me with this:
    I have a vi which is eseentially a sequence (though I do not use a sequence
    primitive). At one point during my sequence, I need to launch another VI
    that goes and does its own thing. Then, the calling VI (the original one)
    has to finish a few steps, while the other VI is doing its own thing. I
    have no experience using the 'VI Control' primitives on the controls
    pallete, so if anyone has experience with this, could you please help me
    out?
    Essentially, I need to run two VI's at once. I know how to do that in terms
    of making each while loop have a 'Wait for Milliseconds' within the loop so
    that the currently executing loop does not hog the processor, I just don't
    know how to launc
    h another VI to run in the background from within a VI.
    The only way that I have done this in the past is to call a VI as a
    subroutine, have it do its task, and then return to the calling VI.
    Any ideas?
    Thanks,
    Wes
    [email protected]

    Wes,
    Apart from calling a VI as a sub-vi you can use VI Server to call another VI. The VI you are calling can be on the same machine or could be called remotely from another machine.
    There are a few examples on using VI Server you may find helpful. If you go to the Resource Library in NI Developer Zone http://zone.ni.com/libraries/ and then go to LabVIEW-Connectvity-VI Server you should find quite a few examples.
    One that is pretty simple and useful is titled - Programmatically Opening and Running One VI from Another Using VI Server
    In the diagram of the This.vi you'll see that there is an invoke node that is calling a Run VI method, the parameter for the method is Wait Until Done. By setting this to true you can ensure that the VI you are calling completes executi
    on before the next VI (with flow being controlled through the error cluster) executes. If you set it to false the VI will go off and run and you can continue doing things independently.
    Do be careful in case you are getting into situations where you might be calling the same VI again before the previous call has completed. If that is a possibility mark the VI as re-entrant, this is wether you're using VI server or just calling the same sub-vi multiple times in another VI. If you don't set the VI up to be re-entrant you run the risk of the same data space being used for different calls.
    Regards,
    Kamran

  • When making a call, sometimes, my iPhone 5 , gets stuck on 'Calling' than I have to press END..but still nothing happens, than when I press HOME button, the call app keeps running in the background and it keeps saying CALLING... please help

    When making a call, sometimes, my iPhone 5 , gets stuck on 'Calling' than I have to press END..but still nothing happens, than when I press HOME button, the call app keeps running in the background and it keeps saying CALLING... than I have to wait 2 - 3 minutes and call again.
    please help

    Has nothing to do with the SIM or master reset.  This has been done to my phone.  The SIM once and the factory reset many times over.  You all just sold us a bad piece of equipment and have us by the tail with our contracts so none of us can get a new phone without paying full price or re-upping our contract.  I just got off the phone last night with your high up tech people (you know, the hidden number we get once we tear into your support people enough), they went into my phone again and still didn't find anything wrong.  I about got fired from my job for not getting my calls and texts.  The BBB has now been contacted, and I feel your end should shore this up for all of us!

  • I have a flash game I want to run in the background while surfing other tabs. When I change tabs the game automatically pauses. How can I stop this.

    Is this a flash issue or can I force this game to run in the background somehow.

    Does this also happen if you run that game in another window?
    You can tear off a tab to a new window by slightly dragging the tab down in the browser area.

  • Running the other 7 MobileSafari pages in the background?

    Since MobileSafari doesn't let the other 7 pages (out of the 8) run in the background, are there any third party browser apps that can? Or is it the same restriction since they're still using its rendering engine underneath?

    Nevermind, found a solution (iCab Mobile).

  • Firefox is diverting searches to other sites. there also seems to be an ad site running in the background

    google searches links get diverted to other sites. There is some sort video/ audio stream running in the background. I think it comes from blinx. I looked at my add on and they all seem legit.

    Install, update, and run these programs in this order. They are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have. <br />'''''(Not all programs detect the same Malware.)'''''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • I am running my first time machine backup onto a Western Digital MyBook Live.  It is taking forever.  Is there antivirus software running in the background or any other settings I need to change to speed it up?  Also I am on a wireless network.

    I am running my first time machine backup onto a Western Digital MyBook Live.  It is taking forever.  Is there antivirus software running in the background or any other settings I need to change to speed it up?  Also I am on a wireless network.

    The initial Time Machine backup can certainly take a long time over wireless. Days, possibly. It's impossible for anyone here to be able to predict how long it will take, and wireless environmental conditions can change at any time.
    Is there antivirus software running in the background
    Only you can determine that. If you're using third party AV software, anything is possible.
    NAS devices may not be compatible with Time Machine, regardless of what their manufacturers may claim. Even after the Time Machine backup completes, your backup may be unreliable. You may not discover that until you need to rely upon the backup for some reason, and corruption can occur months or years from now.
    Time Machine supports the following backup configurations:
    A locally mounted volume
    Time Capsule
    A volume resident on a USB hard disk connected directly to a Time Capsule or current production AirPort Extreme Base Station.
    That's it. Any configuration other than the above list places you in an experimental category. If your backup fails, you're on your own.

  • Can the width of a report that has been run in the background be increased?

    Hello Experts,
    How can I increase the width of a report that I have run in the background so that it does not wrap text to the next line?
    I have been running the same HR report successfully in the background for many months.  Today I ran it with the same parameters that I've always used and when I retrieve it from my Own Job Spool - System | Own Spool Request | Display Contents the last field is wrapped to the next line.
    Thanks.
    Regards,
    Jeanette

    Jeanette,
    Thereu2019s another possibility if Tedu2019s suggestion doesnu2019t work. When you look at your spool requests, thereu2019s an icon on the toolbar next to the eyeglasses that looks like a yellow rectangular callout. Itu2019s called u201CDisplay in Maximum Widthu201D. Select the Spool no. to display and then press this icon. Shift + F4 is the shortcut.
    Regards,
    Howard

  • Page breaks appear in the spool output of report when run in the background

    Hi All,
    Report is using fm 'REUSE_ALV_GRID_DISPLAY' to display the report. parameters passed to this fm for display are :it_fieldcat,is_layout,it_events,t_outtab.
    Page breaks appear in the spool output when report is run in the background.These page breaks needs to be removed. When executed in the background, the excel extract should be the same as if pulling directly from the report itself.
    How to remove the page breaks in background?
    Thanks & Regards,
    Abhishek Singh

    Hi
    You can use the below code , which the reprt run in background. If you run the report in background thenyou need to use  'REUSE_ALV_LIST_DISPLAY'
    if sy-batch = ' '.
    call 'REUSE_ALV_GRID_DISPLAY'.
    else.
    call 'REUSE_ALV_LIST_DISPLAY'.
    endif.
    if you are using OO alv then write this code..
    CALL METHOD cl_gui_alv_grid=>offline
    RECEIVING e_offline = off.
    IF off IS INITIAL.
    CREATE OBJECT g_custom_container
    EXPORTING container_name = g_container.
    ENDIF.
    Regards

  • Apps running in the background

    It seems to be if you have the app linked to a watch complication or you have it on your glances page, then those apps loads much faster.  I figure they are always running so the data can be displayed on the watch face or quickly at a glance.
    So if you have every possible app on your glances page, then your battery life would drain much faster than if you have fewer apps.
    I only have 3-4 apps on my glances page and I can easily get 20 hours of battery life, and this includes a 1 hour workout using GPS and HR monitoring.

    Tbh, the biggest battery drain is your email push settings. I'd look at those before worrying about terminating background apps.
    You can see everything that's running on your phone by using a "process monitor" app. I use one called "iStat". Unfortunately, iStat can only show you what's running, it can;t actually kill anything. It will definitely tell you which of the 1st party programs (browser, email, ipod) are running in the background.
    If you actually want to kill one of these, the procedure is:
    Open the app in question (e.g. launch the ipod app)
    Hold the power/sleep button until the red slider appears.
    Hold the sleep button for around 6 seconds (eventually the red slider will disappear and you will be returned to the home screen).
    Whichever app was running (e.g. ipod) will now be forced to close.
    ** note: To close safari, you can simply close all the "tabs" down, and then exit. If you close safari when there are no tabs in use, it will completely shut down.

  • Program running in the background

    Hello!
    I am wondering if it is possible to create a java program that runs in the background on a mobile phone. I.E can it run without beeing interuppted by a call or the locking of the key pad.
    Is it possible to let the program run without interfering with the normal functionallity of the phone?

    qnx wrote:
    1) Stop trying to make spyware. -> I don't do anything like this!
    2) Stop re-posting the same questions. -> didn't know they are the same, sorry.
    3) Stop taking us for fools. -> what? Honestly, I don't think that I realy deserved this :)With a limited posting history and the type of questions you are asking they are unusual.
    There are very few legitimate problem domains that would require what you are asking about. There are illegitimate ones though. And the legitimate ones would generally require someone with quite a bit of programming experience and would also be required (the fact that java can't do it would not get rid of the requirement.)
    Thus one might make assumptions about your intentions.

  • Midlet running in the background

    Hello!
    I am wondering if it is possible to create a java program that runs in the background on a mobile phone. I.E can it run without beeing interuppted by a call or the locking of the key pad.
    Is it possible to let the program run without interfering with the normal functionallity of the phone?

    Hi
    To make a midlet run in the background you have to do as mentioned:
    Display display = Display.getDisplay(this);
    display.setCurrent(null);
    This will make the midlet run in background while you can continue working with other midlets. This strategy was tested with J2MEWTK 2.5 & Black Berry.
    Thanks
    Bruce

  • Firefox running in the background

    I've noticed that Firefox often hangs and keeps running in the background even after I closed the browsing windows, which is quite annoying.
    I'd like to use a VPN but it's kind of pointless given such an error; I'd switch it off thinking Firefox is down but it's running.
    I've had problems with constant error messages and slow performance.
    I'm sure there are ways to work around this, such as shutting down the process in task manager each time or changing this and that setting, but can we expect a version that does not contain this error in the first place?
    That would be so much easier.

    I have noticed that sometimes I suspect, but it has been either explainable, or on other persons machines where I have not been able to troubleshoot
    Before starting any further troubleshooting I suggest you try updating to the current version of Firefox
    * [[Update Firefox to the latest version]]
    As a first troubleshooting step then try Firefox in its safe mode. That is a temporary and reversible troubleshooting stage with some features shut down
    * [[Troubleshoot Firefox issues using Safe Mode]]
    You mention error messages please paste them into your next reply, (or attach as a screenshot) and say what you were doing at that time.
    As an Aside
    I would also point out there is a reported but unfixed bug (or was last week) on what was the Aurora channel and is now called Developer Edition, that some times causes this, but even worse as it crashes and locks profiles.
    Unusual that, common bugs breaking through form Nightly to Aurora.

  • Vi running in the background

    Hi,
    I try to write a VI running in the background -- but it doesn't work properly.
    The VI is supposed to do the following:
    hide the panel
    write 1st time (actual time) to c:\temp\wtft.txt
    wait 5 sec
    write 2nd time (actual time) to c:\temp\wtft.txt
    show the panel
    wait 1 sec (just to see the panel)
    exit
    The hiding and exiting are easily adjustable using booleans for testing purposes. The front panel is completely empty.
    Everything works as expected in the development system. But it doesn't after building an application. When running as application, the 2nd time won't be written to the text file if the panel is hidden. As far as I underst
    and that's because the VI is terminated after the panel is closed. But I have a reference to the VI opened and I just close it after showing the panel again.
    Can someone give me a hint what I'm doing wrong?
    The VI in question is attached. We're running LabView 6.1 in Windows 2000.
    Thanks,
    Carsten
    Attachments:
    wtft.zip ‏21 KB

    A built application must always have one window visible, otherwise the application terminates, having a reference open does not help.
    Opening a reference to avoid a VI from terminating is useful e.g. if you dynamically load a VI using an invoke node and the wait until finished set to false (if you close the reference the VI will terminate...the trick is to make it open a reference to itself prior to closing the reference in the caller). But again - the application must always have one window visible. That window can be minimized and/or moved off-screen, but not closed.
    MTO

Maybe you are looking for

  • How to change the dimensions of a display (not resolution)?

    I use a 27" iMac with a 27" Dell Monitor (1920x1080). Physically, the displays are nearly the same size, even though the resolutions are very different. This means that in 'Displays > Arrangement', the Dell monitor appears much smaller than the iMac

  • Transfer from old hard drive to new MacBook + Antivirus

    Hi, My trusty iBook G4 finally died on me (Failing to read Logic board) and I am waiting for my replacement MacBook. My question is: Can I remove the hd from my iBook and set it up in an enclosure and then transfer all my data/ preferences over to my

  • Need help with ipohne, white screen!!

      i got given a iphone and had to get the screen fixed on it so i bought a kit , but the only thing is when its turned on it only lights up with a white screen. you can touch the screen and it makes noises and so fourth but you cant see anything but

  • Portal exception monitoring

    Hi everyone, we seem to have a problem every now and again with our portal (EP6 sp15) which causes exceptions written in the logs and iViews not being displayed. We believe it has something to with the communication to the backend system but the logs

  • Web Dispatcher

    Hi All, As part of our project implementation to one of our vendors, we need to know what SAP recommends for Load Balancing. This load balancer that we are looking for is to have in the DMZ so that our external applicants (E-recruitment) can access o