Launch a background process
Hi!
In my web application when a certain button is pressed i need to launch a invisible background process while i continue using the application
What do you recommend me to do this?
Thanks!
T.
Couple of ways you can do this.
1 - Have the background process implement the interface Runnable. Start a new thread for this process. You can keep a reference to it in session if you want to monitor it.
2 - In a J2EE environment, send a JMS message to trigger a process.
Either of these will let control return to your servlet immediately, and you can return a response of "job started, check back later" to the user.
Similar Messages
-
Front Row launches as background process when running second display
When I connect a second display, Front Row launches as a background process and hogs upwards of 90% of my CPU cycles. I've tried connecting things in various orders, but had no success in avoiding this.
try restarting and it will works. it happens to me some of the times or unplug your cable and plug it in again.
-
Launch background process from unix command line and detect if it is runnin
in Cocoa, I am able to run unix app by using NSTask, it works fine to me. But I want to do the following:
1. Start up a background process.
2. Wait to see if this background process has been launched correctly.
3. If yes, keep running following codes...
With NSTask, I cannot make sure when the background process has been launched correctly... and other codes just keep running...
If I do something like:
while (bgprocess isRunning)
}What exactly do you mean by "launched correctly"? Do you just care that the process has begun? Do you want to make sure it is still running? Do you want to see if there is some signal emitted (either affirmative "I am running" or absence of a child-died signal)?
Your isRunning example does appear to be in accord with the NSTask docs for "do blah blah blah while the task is running", but that doesn't seem to be what your description says you want to do. Is "blah blah blah" an idle loop until the task has started, or is it something to do while the task is actually running?
How about looking up the pid of the child process (processIdentifier for the NSTask) and then check whether that process is still running? -
Background Process vs. Dialogue Process
I have setup an infopackage that would run using background processes. i.e.
Start Later in Background > Immediate
PSA and DATA Targets in Parallel under Processing
After kicking it off I checked my job in SM66, I have 8 processes available in BI according to SM50 however, in SM66 it runs only 3 processes with DIA as type. For some reason my load is not launching properly as a BKGD process. Does anyone have any suggestions?
Thanks.Hi,
U have to chk many things here,
1) First chk the resource availability.
2) Chk the extraction process how fastly the records are generated in the source, i mean howmuch time the bkgd job is taking to finish. If that is fine then chk how the idocs are moving from source to BI.
3) And also if the extraction job finishes in time then chk the diaog processes available at that time.
4) U can chk and find the difference at peak and free times by running differently(jst a comparision).
4) chk the data packet size at BI lvel and Source level.
5) Chk is there critical transformations/routines at BI level.
rdgs, -
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.
-
"Unable to Connect to Background Process." Revisited
Hello,
I am getting the dreaded "Unable to Connect to Background Process."
YES I tried the apple suggestion. I also tried the hostconfig suggestion (that one was a mistake!). Archive instal on the system then a re instal of Compressor & Q Master and no luck.
I did notice one thing in activity monitor "Compressord (Not Responding)" It is hung force quit it and re launch compressor again and it dose that.
Same is true on my PowerBook G4 17 and my New MacBook Pro 17 (Witch I migrated from the PowerBook)
I am use Compressor 2.1
Not sure where to go from here.
Thanks for any info you can give me!
Shaun
MacBook Pro 17 inch Mac OS X (10.4.6) 2 GB Ram 100 GB 7200 RPM DriveRobert's suggestion above is the only thing that worked for me. I tried all of the other "fixes" on this and other threads, but nothing solved the problem until I did this:
- Quit Compressor
- Run Terminal and then enter...
sudo /Library/StartupItems/Qmaster/Qmaster
...and enter your system password.
- Re-Run Compressor and re-submit the batch and it
should work. Sometimes you need to wait a minute or
so for Qmaster to get "up and running" but it has
always worked for me. And Qmaster keeps running
until you reboot.
Hopefully, this will help someone else with the same problem.
G5 Mac OS X (10.4.6) -
AIR vs. Flex: image generator as a background process on the server
I am running into problems with an image generator running on
a headless server.
When I start up the server, it launches my java app. It reads
a list of report definitions from the data base. For each report,
it spawns a thread. Each thread launches my Flex application in a
browser window.
Flex draws the data in charts. Each time data is pushed to
the flex application from the java server side, Flex calls a remote
java method to save it's image to a file. This file sits in a
directory where it can be viewed in a regular old html page.
The problem is really the automated aspect. I want to have
this chart generated every few minutes as a .png file. It works
perfectly fine on my localhost machine, but the server deployment
is so far not working, I think because it is headless. We have
firefox installed on the server. Is there no way to launch it as a
background process to draw these images? Should I turn this into an
AIR app (I've never done anything with AIR up to this point) to
make it run more easily in the background?
Java programmers all seem to think that running an image
generating process in a web browser window on the server is "bad
practice". So I think I am thinking maybe I should turn it into an
AIR app. I'm not sure though how to deploy AIR apps though. Can
they go in a .war file?
If someone has any ideas about this or if going AIR is the
wrong approach here please let me know. Thanks!Not explicitly, as far as I know.
But you could always run it and then hide its window using Cmd+H, or the menu command "iCal" -> "Hide iCal". Click its dock icon to make it visible again. -
Background processes initialization much longer in CS6
Hello,
The title says it all.
When launching a render, the message "background processes initializing / this may take a while" gets stuck more than 70s in CS6, whatever the project, whereas it was never on more than 10s in CS5.
We're back to the CS4 delays here. Is this a known issue ?
On a side note, the multiprocessing is a bit weird:
Before it was pretty straightforward : When 10 cores were used for the render, the frames were rendered by batches of 10. With CS6 it's different : A first batch of 3 frames get rendered, then another one of 14 (!!), then I lost track of the process.
Is multiprocessing so different in CS6 ?
Thanks to whoever can answer...
JM
Mac Pro 12-Core / 32GB RAM
Mac Os 10.6.8
AE MP settings :
2,5GB per core / RAM reserved for other applications : 4GB
CPU reserved for other applications : 4It seems that the latest update (11.0.2) did not fix this. Are Adobe actually going to acknowlegde this problem exists or just bury their heads in the sand over it? I just tried rendering out a TIFF sequence and a WAV file into an mp4. After 3 minutes of it saying 'background processes intializing this may take some time' I cancelled it, turned off multi-processing and it then rendered straight away. This was using an i7 on Windows using 6 cores to multi-process with. The majoirty of time the delay in ram previewing with multi-processing turned on completely negates the speed advantages you get than if you don't have it turned on as well - especially with small, easy comps. I also see the same problem with the Mac Pros at work. Could you please possibly spend less time inflating the software by adding plugins and components that we don't need ie Camera Tracker (I have Boujou, PFMatchIt, Matchmover and The Foundry Camera Tracker already) and that god awful slow raytracing engine and actually speed the whole programme up which is what we all want?
And one last thing. When are we going to see proper playback from disk and not ram like a Smoke, Flame or Avid system does? I have 5 SSDs in RAID 0, more than quick enough to playback uncompressed 2k+. Why if I'm working in any comp longer than 10 seconds even with 32Gb or RAM am I constantly having to re-render the front part of the comp because AE has used the RAM elsewhere - just store and play it back directly from disk??? This is the only thing that is stopping AE from being a proper online finishing system.
Rant over. Breathe..... -
Compressor 2 and FCP 4.5 "background process" error
So I switched to my laptop which is running 10.4.11 and Compressor 2. I get "Cannot submit batch" Unable to connect to background process. I don't know if I should try the same proposed solutions that are suggested for the newer versions of the software? Any other suggestions?
VAR,
1. When you can spare another 5 min to solve your problem, instead of coming here and complaining about no one helped you (though Tom did offer a very direct response) you might take the time to read your DVDSP manual.
In it, you will discover that DVDSP is totally capable of converting quicktime movies to m2v and aif files. You have full control over all aspects of bitrate etc. Indeed, it is the same engine as in compressor. If you need an AC3 file, use A-Pack on the aif DVDSP will create.
2. When you say compressor does not work, do you mean -A. it does not launch from within FCP or B. you can not launch it independently?
If it will launch independantly. export a reference QT file, open Compressor and have at it.
QT7 is a problematic issue with FCP4.5. The long term solution is to upgrade to FCP5 to go with 10.4 and QT7. They all fit together much more neatly.
fwiw -
1. the people who hang out here and help out fellow users are not employees of Apple. If you want to complain about the software, a good place to do it is on the FCP feedback page This forum is to provide technical support.
2. The people who hang out here and help fellow users are not compensated. Their efforts are volunteer and no one is under any obligation to respond to you in any way. If you don't like the advice, I'm sure Apple techincal support would be glad to have a $199 conversation with you.
3. Tom is a mainstay of the board and one of the the most knowledgeable people you will find regarding FCP. As such he is highly respected by the serious users of the forum. You will not find a great deal of sympathy or support here if you continue on in this vein ..
You have a technical issue, post the details, For example, what have you tried to solve the problem? The intellectual resources here are quite amazing. I've not seem many posts go unresolved for lack of trying.
good luck.
x -
Connot submit batch - Unable to connect background process?
Trying to export 60 min high quality mpeg and get the following message: "Connot submit batch - Unable to connect background process"
I use FCP 4.5 HDYou don't give many details but Jon Chappell of DigitalRebellion has produced a free utility to help with Compressor problems.
He posted these details recently:-
"It seems like a number of people on this forum are having problems submitting batches from Compressor, so I created a utility to diagnose and fix some of those problems.
Compressor Repair will check all necessary files exist on your hard drive and that permissions are set correctly. It also resets Qmaster, trashes the Qmaster spool directory and launches qmasterd."
http://www.digitalrebellion.com/downloads/CompressorRepair.zip -
Background processes NSV0 and LNSV
Oracle 9i Enterprise Edition on WinXP Pro Single instance
Curiosity has driven me to investigate the understanding
of these two background processes showing in a V$BGPROCESS listing.
NSV0
LNSV
There is 00 paddr so I guess they are not actually launched. There is no problem with the Oracle Server.
Searches on Oracle sites yield no rows.
Would be grateful for enlightenment.
MikeSometimes google can give a hint. Using NSV0 and Oracle gives us some links, and http://julian.dyke.users.btopenworld.com/Oracle/Diagnostics/Parameters/BackgroundDumpDest.html gives us a little bit more info than these abbreviations. Not much though...
-
Why may any user leave background processes running at will?
Hi all,
yesterday, I encountered a rather strange problem with linux in common, at least
I think so.
In my .xinitrc, I'm starting offlineimap - a console-based mail synchronization
tool - in the background. Being naive, I expected it to be killed along with the
gui applications started in that file. Yet, that assumption proved wrong and I
started asking for help on how to kill that process on #archlinux.
The guys there (again, thanks for your help and patience!) all came up with
plenty of ideas on how to avoid starting more than once instance of the program,
but that wasn't really what I was looking for. The only usable option came from
anrxc, who suggested killing the program from awesome's logout hooks.
Not fully satisfied with the solutions, I started thinking and came up with the
following question:
Why is every user allowed to leave background processes on the machine
just as he pleases, even if he logs out?
I even tried this over ssh, where the launched commands have some sort of
"parent" process, but even in this circumstance it was possbible to leave
background processes behind after logging out.
I mean, on my desktop system, this is not a big issue... I shut it down once
every day at the least and there are no users on it besides my girlfriend and
me. But this seems like a fundamental problem to me. Why is this allowed at all?
Does it make sense to do it that way? What are the consequences?
Let's discuss!JohannesSM64 wrote:Really, you need to find a better way to manage offlineimap than starting it in xinitrc. Automatically killing any background processes on any logout will not make linux better.
Hmm... to me, .xinitrc is the place to start apps which should live just as long
as the graphical user login lasts. On #archlinux, several other places were
discussed, but none of them were "the thing":
.bashrc
Doesn't work, because a) the process would only get started when I open a shell,
not when I log in and b) because finding a place to stop the process would be
even harder.
.bash-profile
Only gets executed for a login shell, which I wouldn't account for a graphical
login at all.
wm startup script (in this case awesome's rc.lua)
Possbile, but not much better. Would fork the process all the same, merely
moving the problem. If X got killed, not even awesome's logout hooks would
apply.
Also, this approach isn't wm-agnostic, so trying out / switching to another wm
would have the problem occur all over again.
So what do you suggest? Do you have a good idea?
pseudonomous wrote:
As to the question of "why" things act this way:
I believe this is linux display it's heritage as a mulit-user operating system that people used terminals to log into to run program on. A big place where unix used to be (and is, to some degree, still used) was in universities where a professor or graduate student might have logged onto the system to run some program to process some large set of data. You wouldn't want to sit around and wait for this program to finish; you'd want to run it in the background, leave, and come back and look at the results a week later, when the program finished running. One of my friends doing applied math research still does this sort of thing. I'd imagine it's relatively common.
Process management was largely handled be systems administrators, and commonly you were being billed for CPU time, so it was in your interest not to leave programs that you didn't want to run running when you logged out.
Hmmm... that seems like a rational explanation. But in the case that is the
reason for linux' behavior: Why isn't there some kind of a mode setting? Like
one which allows any user to keep processes alive and another one that doesn't? -
GUI_DOWNLOAD and background processing
Hello,
I have created a process which creates a file. this process uses GUI_DOWNLOAD to put the file on the users C drive or other directory on our network. The user wants to run this process in background and the program is returning a 6 (error unknown) from the GUI_DOWNLOAD FM. I was looking on SDN and found out the GUI_DOWNLOAD only works in foreground. You have to use OPEN and CLOSE DATASET statements to process in background. I am thinking about putting a button to denote foreground/background processing and using the appropriate statements to process the file. I will then have to get the file from the app server to a place will the user can get access to it.
<b>first question</b> - is there a FM to do a FTP from the app server to a directory on our network for the user to access?
<b>second question</b> - is this the right approach or is there something else that I should be doing.
thanks in advance for your helpHi,
Yes, your right, GUI_DOWNLOAD wil not work in background mode, you need to place the file in Application server, here.
See the below link for a FTP program, use the proper commands(i do not know whether downloading the file is possible through the commands)
http://www.sap-img.com/ab003.htm
or else, write a small program which downloads the data from the application server, but it should run in the foreground
Regards
Sudheer -
The request could not be submitted for background processing.
Post Author: Chriss
CA Forum: Administration
It's an BOE XI SR2, on Win2k3 server, with a print cluster with two print spools, handling 3000+ printers. I discovered this error to be intermittent and only on one of the spools. It turned out that the only common factor was an HP4250 print driver. I backed all the 4250s down to 4200 drivers and the intermitent error ("Error in File. The request could not be submitted for background processing.") went from about 100 a day to zero. The other spool had a different version of the HP4250 driver and would on rare occassion cause this error, "Error in File ... Page header or footer longer than a page." but never the background processing error.
For reference, when I got this error in XI R1, this was the solution for 'the error with one name and many causes':The error "The request could not be submitted for background processing" can be related to a corrupt or wrong versioned crpe32.dll in the Crystal bin folder. Renaming to crpe32.dll_bak and using the repair command in the the "Add/Remove Programs" tool in the "Control Panel" will reinstall the correct dll. Then restart the Crystal services.Post Author: krishna.moorthi
CA Forum: Administration
For Crystal reports :
Error : "The request could not be submitted for background processing"
I think,this was not related to a corrupt or wrong versioned crpe32.dll.
but the below mentioned is one of the reason for getting this error.
I got the error when the main report(crystalreports10) having more than 2 subreports not assigned proper tables for the subreports.
Example: (this code raise the abone mentioned error.)
rpt.SetDataSource(Exdataset);
rpt.Subreports["subreportname1"].SetDataSource(Exdataset); // Exdatatset.Tables[1]
rpt.Subreports["subreportname2"].SetDataSource(Exdataset);// Exdatatset.Tables[2] -
How to Create Excel File in Background processing with different colors
HI All
I am trying to create Excel file in background & send it to user through e-mail, this i could acheive using fucntion module SO_DOCUMENT_SEND_API1, but here my requirement is i want to put different colors to columns of excel & this should happen in Background processing,
Initially i completed above requirement by using HTML type of document with attachment type 'ALI' & formatted output using write statement & used colors, after that i took this o/p using save_list function module & then table compress...etc.
but i don't know how to achieve same if we need o/p in excel as size of object of excel file is less than that of HTML
I am thankfull to everybody who will help me.
Regards
LokeshLokesh,
Iam also trying to populate my text file with colors as an attachment . If you know this please let me know.
Maybe you are looking for
-
I have written a routine that loads a Hex file, checks for record marker,length,address etc then loads the data into a table on front panel. However, my routine only loads single record hex files. I need to be able to load multiple record files, I ne
-
Sender File Adapter FCC to Hierarchial MT Coversion
Hi, I have MT with structure as follows Header 1..1 F1 string 1..1 F2 string 1..1 SUB 1 to unbounded S11 string 1..1 S12 string 1..1 Can you anybody help me out
-
Hi, I am trying to load the ECC - FI AR data to SAP BI using the extractor 0FI_AR_4. The period balances get populated but the opening balances miss out. I checked the BSID and BSAD tables for period 00 but could not find any data. How to get AR - pe
-
Container object in Message Mapping
Hello I am having a scenario where I want to reuse the previous value of a map to calculate another value.For the same I tried container parameters in Message Mappings by using a simple Java function calling container.getGlobalContainer().setParamete
-
Assign Withholding Tax Types to Company Code
In SPRO in the menu item "Assign Withholding Tax Types to Company Code" (program SAPL0F61), I enter to try and setup the Types for my new Company code. When I go into New Entries, On the top drop-down I enter my new Company Code, then in the "Wthh