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.

Similar Messages

  • HT201320 When using an iPad Air, is it possible to have my email removed from the server after downloading it? That's what I have been doing on my PowerBook and I would like to use my iPad as my primary email reader now.

    When using an iPad Air, is it possible to have my email removed from the server after downloading it? That's what I have been doing on my PowerBook and I would like to use my iPad as my primary email reader now.

    OK, I found the answer in the mail settings under the advanced button.

  • When will Apple allow background processes for the iPhone?

    Can't find a suitable subforum so I'll post it here, please refer me to the correct Apple forum otherwise.
    When will Apple allow background processes for the iPhone?
    When will Apple allow Alerts from 3rd party apps?
    Even my first Palm Pilot allowed developers to use Alert beeps.
    Why is Apple crippling the iPhone?
    If they continue this, Android will be the winner.
    Or will the next SDK allow this?

    Background processing, simply won't. They already said they won't and explained why.
    However, they are currently adding "Push" ability to developers (soon). Originally they did say they were shooting for Sept (but obviously that has passed). Nobody can say "why" it is late or when it will come. Just know it is coming.
    Push in case you don't know will let a service (one service) run in the background that apple makes for the phone. that service will ping apple's servers. Apps that want to "run" in the background have to register with that service thus lets say AIM is on your phone, you send a message and close...somebody responds. AIM's servers will send notification to the push service...then the phone will alert you of a notification in the AIM app, you open (thus starts the app again) and it gets the message.

  • Regarding background processing of the session

    Hi Gurus
       I have some records in my flat file.
    While i am doing uploading the file using tc, in foreground it is processing correctly and no issues.
    While in Background some of the records are not processing properly and in sm35 for those records I am getting the message :"InCorrect".
    What may be the reasons I am not getting.
    Can you please suggest me where may be the wrong exactly.
    Your suggestions are highly encouragable.
    Regards,
    kumar

    Hi Sree Ram,
    This is a very common problem faced in Mass upload of data. This mainly happens if the current transaction is dependent on the previous transaction. For e.g. transaction 2 has a dependency on sucessfull processing of transaction 1.This is due to the time taken by the transaction to update the database table.
    Put a commit statement after every transaction in your recording and this will ensure that the records are updated and you will not face any problem in background processing.
    Regards,
    Guru

  • Background processes of the app server

    Hi,
      We had setup one app server & database server. We would like to restrict the users to use the same server which they are assigned to. Currently it's happening with the logon groups for dialog users. When ever something is getting executed in background it's occupying the other servers background work process also which we don't want to.
      Is there a way to control to use only that particular application server's processes when they are performing any activity or transaction running in the background.
    Regards,
    Krishna.

    Check SAP  [Note 786412 - Determining execution server of jobs w/o target server|https://service.sap.com/sap/support/notes/786412]
    The default server group has now been introduced (as of Basis Release 6.10) for these types of requirements.
    Create a server group with the name 'SAP_DEFAULT_BTC' in transaction SM61 and assign the desired servers. As of now, the background jobs that do not have an execution goal are only executed on a (any) server that is included in the server group 'SAP_DEFAULT_BTC'.
    Note that the 'SAP_DEFAULT_BTC' server group is analyzed at the start time of a job, but not at the definition time. This applies in general to background processing server groups.
    Hope this helps.
    Thanks,
    Naveed
    Edited by: Naveed Qureshi on Oct 11, 2010 11:41 AM

  • AIR and Flex differed about DNS Resolver?

    It is an interesting problem.
    The code is running well in Flex, it can send and get data from the server. but fail in the AIR(IO ERROR).
                import flash.events.*;
                import flash.net.*;
                private function initPanel():void
                    var stream:URLStream = new URLStream();
                    var req:URLRequest = new URLRequest();
                    var temp:URLVariables = new URLVariables();
                    temp.type = 1;
                    temp.wd = "125a100a125a101a";
                    req.url = "http://hw.baidu.com";
                    req.method = "POST";
                    req.data = temp;
                    stream.load(req);
    Tested in: Win2003, Flex builder 4.0.1, Flash Player(WIN 10,1,53,64)

    Hi Richard,
    First of all, welcome to the AIR / Flex community.
    Secondly, learning Flex is easy. Start off with the "Flex in
    a week" video training (
    http://www.adobe.com/devnet/flex/videotraining/).
    In general,
    http://www.adobe.com/devnet/air/
    and
    http://www.adobe.com/devnet/flex/
    are great resources.
    If you have any issues, use
    http://community.adobe.com/ion/search.html
    to search for material. Still no luck, post here and we'll
    definitely help you out.
    P.S: You can even build AIR apps from Flash (
    http://www.adobe.com/devnet/air/flash/)

  • SAP BI 7 - Background process performance Issue

    This question is about efficiency of dialog process compared to inefficiency of the background process and I want suggestions from SAP Basis/BI experts on this.
    We have observed that our background processes on BI server are not running as efficiently as we would like them to run.
    For example
    DSO activation:
    When I use Dialog mode for DSO Activation with 3 parallel processes, I can activate a certain DSO with in 15 seconds. But the same DSO and the same data package when activated using background mode with 3 parallel process takes about 15 minutes.(there are plenty of background processes available on the system when this activation is running). So dialog process runs 60 times faster than background process.
    In BI 7 most of the operations can be executed only in the background parallel mode. And from the activation example we know that our background processes are not as efficient as dialog processes. It
    is understood that in general the background processes will not be as efficient as dialog processes, but in our case the difference is a factor of 60. We want help to identify, why the background processes are not as efficient as dialog processes. What SAP Basis settings need to be changed to make them as efficient as we can. Any suggestion or help will be highly appreciated.

    Hello Eswaran
    Generally a dialog process is not faster by any means than a background workprocess. Nevertheless i trust you on your observations, so there must be some difference. I just did a small test, i ran SE16 chose a big table and selected 10000 rows, i did 3 tries in dialog and 3 in background. The results:
    dialog: 10.2s, 9.4s, 9.6s
    background: 26s, 24s, 24s
    So even in my simple example the background execution took more time. The issue here is, that the resulting output (which is pretty large) had to be saved additionally in a spool (a total of 167 pages) when executed in background. The selection of the data certainly did not take more time in either case.
    The most important difference between dialog and batch processes is the memory management. Dialog processes work with a shared memory segment (extended memory). Background processes have their private heap memory.
    Nevertheless, background processes are not "slower" in general, not at all. You will need to observe closer, what your processes are doing. Maybe watching SM50 while running the DSO activation is enough to see it, maybe you need to trace a process. If you see large spools generated, or huge amounts of memory consumed, we might already have an answer.
    Regards
    Michael

  • Postprocessing - background processing - Still running!!!

    Hi All
    I think I am having a small problem with this task 'Postprocessing - background processing' during the Postprocessing Phase. Basically on previous runs, this task has finished quite quickly however during this next run it is taking hours. I have restarted this phase and it does not seem to finish.
    I have checked SM66 to see if anything is running and there is nothing there. All of the other processes have finished successfully, just not sure about this one.
    Has anyone had this issue before or can you give me an insight to what it is doing?
    Thanks in advance
    Phil

    >
    Phil Wade wrote:
    > The process that are involved in the task are:
    >
    > Reset Internal Header Tables After the Transfer - Complete
    > Postprocessing - background processing - This one has not completed
    > Transfer of Number Range Intervals - Complete
    > Reset Number Range and Table Buffers in Receiver System - Complete
    > Delete Generated Views - Complete
    > Adjust User Addresses - Complete
    > Update SAPOffice - Complete
    > Execute Initialization for POS Handling - Complete
    > Change Logical System Names - Complete
    > Unlock Users in Receiver System - Complete
    > Refresh Data Selection Cluster of Current Transfer - Complete
    > Phil
    "Postprocessing - background processing" is not actually a task, it is there only to group the sub-tasks (from "Transfer of Number Range Intervals" to "Change Logical System Names"). When you execute it, it will run all the sub-tasks (in the Standard View this complexity is hidden, so you don't even see there are sub-tasks).
    If the sub-tasks are all Complete then there is nothing left to do. It is normal that there is no State icon for that grouping task, or that Progress is 0. If you execute it again you are running all the sub-tasks once again (you probably received a pop-up to confirm that's what you wanted). In that case, the column "Exec No" in the sub-tasks probably shows that some were executed more than once (some are repeatable and some are not).
    Hope this helps,
    Rui Dantas

  • ABAP Custom Report (ALV Format) in Background Processing

    Hi
    I am not the hardcore ABAP Person. But want to know about the detail fact of the ABAP Custome Reports. The question is can we do the background processing for the ABAP Custome Report in ALV Format.
    If Yes ..do we require to have any additional Function/code to get the spool in ALV Format. I saw the comments that the output will look like the mess.
    Please share your comment or any useful documenation on this. We are in ECC 6.0
    Thanks in advance..and yes it will be rewared by points.
    Navin

    You can use alv's in background using docking containers, but the display wont be interactive. If you search the forum you will see tons of threads which talk about running ALV's in background.
    For the output to be interactive, you can run the report in foreground and do the data processing in background.
    Refer this link:
    Displaying ALV Grid in Background Job

  • Background processes while starting the R/3 system

    hi all
    I have IDES R/3 4.7 installed in my hard disk,
    and when i start the background processes normally the status has to be Wait , yes.
    But these days when i started the processes, i'm getting the statuses as "Ended"  with all the 12 background processes,
    and i can't be able to get into the login screen.
    can anyone tell how to get the processes states to wait and yes state.
    Thanks

    Have a look at the dev_-traces located in /usr/sap/work directory. You should pay special attention to dev_w0 and dev_ms, and then look through the other dev_w files.
    I guess, there you will find a hint leading you to the cuase of the issue

  • Background Process doesn't work

    Hi Everybody,
    i want to change some data on a database table through a background process but the data will not be changed:
    I am working on IDES ECC 6.0 (2005)
                    CALL FUNCTION 'MY_BACKGROUNDD_PROCESS'
                      IN BACKGROUND TASK AS SEPARATE UNIT DESTINATION 'NONE'
                      EXPORTING
                    CALL FUNCTION 'START_OF_BACKGROUNDTASK'
                         EXPORTING
                              STARTDATE = SY-DATUM
                              STARTTIME = l_time
                         EXCEPTIONS
                              OTHERS    = 1.
                    IF sy-subrc = 0.
                      COMMIT WORK.
                    ENDIF.
    If i call the function without: " IN BACKGROUND TASK AS SEPARATE UNIT DESTINATION 'NONE' " it works fine.
    What could be the problem?
    regards,
    Sid

    Hi Julius,
    i am new to abap so i am trying to find a solution in SDN. I try it also without 'IN  A SEPERATE UNIT' but without success. Is it necessary to call the function: 'START_OF_BACKGROUNDTASK' after it?
                    CALL FUNCTION 'MY_BACKGROUND_PROCESS'
                      IN BACKGROUND TASK DESTINATION 'NONE'
                      EXPORTING
    Could you please give me an example how i can call my fuction 'MY_BACKGROUND_PROCESS' as a background task?
    Thanks in advance!
    Sid

  • BDC background processing

    Hi all,
       I've written a batch input data transfer program, into the internal table of which i upload some data from the presentation server using the GUI_UPLOAD function module . I am trying both session method and call transaction. I am being successful in uploading the data into the SAP system i,e into the database tables when i follow foreground processing for session method and 'MODE A'  in call transaction. The problem arises when i try to use the background processing option , the data is not getting uploaded into the SAP system. When i use the  foreground option the same data gets uploaded without problem.
       For the case of call transaction i tried looking into the message internal table during successful uploads, it'll have success message type and for the PROBLEM case of mine the internal table will be empty.

    hi,
    Yes. You can't run it in background if you are using GUI_UPLOAD.
    If the data is in application server, you can read it using OPEN DATASET.. and upload it to internal table in background.
    regards,
    Beena

  • Java code running as background process in Linux causes high CPU util.

    I'm running a piece of java code as a background process in Redhat 7.1 . When I specify to run it as a background process (using the '&') at the command line, I get CPU utilization at around 5% and it dips.
    When I edit the script that runs the java code to specify running it as a background process withint the script itself (java ..... &) and then go to the command line and run the script, the CPU utilization shoots up to 95% and stays at the low 90's - very high 80's range for the CPU utilization..
    I'm hoping someone has any idea for this behavior and a way to fix it.
    Thanks in advance,
    Sarat..

    This is an interesting post and i'm sory i don't have time to
    experament before i answer
    you could of course run the script as background
    *.sh &
    but that's probubly not what you want
    I think the solution lies in giving the
    proccess a job number %n
    then setting it %n &
    it might even work to
    put something like %java &
    Anyway when it's running fullout
    it is because it is in the
    current terminal process group PID.
    wish i could help more

  • 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.

  • Servlet background process on tomcat 4.0.2

    i have 1 servlet which will run a thread, background process, whenever the init() on that servlet called. i tried on tomcat 3.3a and tomcat 3.2.3, and both tomcat will run my servlet's background process, will run the thread. but, when i run the servlet using tomcat 4, tomcat 4 will run the init(), but when it do not start the thread. what happen?... i used the same code, servlet, on tomcat 3.2.3, 3.3a and 4....
    can anyone explain it to me?.....

    my code look like this:
    public class Discover extends HttpServlet implements Runnable
    Thread t = null;
    boolean running = false;
    public void init()
    t = new Thread(this);
    t.start();
    System.out.println("thread start");
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws
    ServletException, IOException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("discover=" + running);
    public void run()
    running = true;
    System.out.println("thread running...");
    * do some stuff here....
    running = false;
    System.out.println("thread stopped...");
    i tried this servlet on tomcat 3.2.3 and 3.3a and the thread run. i can see the 'thread start', 'thread running' and 'thread stopped' on the tomcat console. but, when i use tomcat 4, i can only see 'thread start' on the console, which show that the run() is not execute...... y?... please help me.......

Maybe you are looking for

  • Posting of Bank Charges not Possible

    Hi Sap Gurus, I have a question/problem regarding the bank statement upload process (TC: FF_5) Maybe someone has a solution for this, orhas  the same problem. First we've run the payment run to clear/pay our vendors a) Invoice Posting (40 Expense (De

  • Long runnig queries

    Hello, We have some long runnig queries, One query in example have around 150 chars(49 in Default layout and 101in free chars) and 65 keyfigures- this query executes in RSRT within 3 minutes.. but if you try to execute in BEX (7.0) it gets Time out e

  • Java Code to trigger Custom Based Event in BO XI Release

    hi, I am new member of this community. I am very happy to be part of it. I am working in BO XI r2. I  need to schedule some reports based on custom event and I need to trigger this event externally using some java application. Is it possible to trigg

  • Formatting incoming text with style sheets

    Is there a way to "find/change" formatted text with existing style sheets?<br /><br />In other words I have formatted text placed into my indesign document that looks like the following: <bf>Four Patch</bf> Then another set of text that looks like th

  • How to see SCOT Errors

    Hi I have a send mail step in the workflow. The mail reaches SCOT but then it goes to the error bucket. Is there a way I can figure out what the actual error is. Thanks Manas