4 Replies Latest reply on Nov 30, 2007 1:49 PM by ntsiii

    Starting a process from a Flex application

    Chuckon
      I really need a lead on this. I need to trigger some kind of process when some actions are performed in my Flex application. I'm using FDS to connect to database and perform some transactions. I also need when some of those transactions occur to perform other operations beside the Flex applicaton but I need the Flex application to trigger those actions. It could be a command line call like running an application with some parameters. It would be desirable to be able to run some Java objecs to perform those actions or processes and have it more integrated with the Flex application though. I really don't know what technology can be used. I'm using Flex, FDS and Java POJOs pretty much. Thanks in advance
        • 1. Re: Starting a process from a Flex application
          JKohn99 Level 1
          It's not clear from your posting if you mean Flex triggering actions on the client or on the server.

          If it's on the server you can use lots of methods either via FDS or calling a servlet via an httpRequest.

          If you are trying to trigger some action on the client outside of the Flash player you can't do that. The Sandbox security will not allow that to happen.

          AIR may allow your application to call local resources but then you're running a desktop application not a Web App.
          • 2. Re: Starting a process from a Flex application
            Chuckon Level 1
            Thanks a lot for the reply JK, I appreciated. I need it on the server side only. It could be executing a command line tool that communicates with another application, or more diserable running a java method that communicates with the other application. So an http request can achieve that?
            • 3. Starting a process from a Flex application
              Ansury Level 3
              Just an FYI even though this isn't needed in this case -

              AIR cannot start third party apps at all (without ugly workarounds), unless Adobe has decided to reverse their position on this recently. Alot of people have been asking for this and it may be added at some point. Feature request link below.
              • 4. Re: Starting a process from a Flex application
                ntsiii Level 3
                A HTTPRequest can invoke anything that the server page can do. I use asp.net, and so have access to the dot.net framework functionality.

                If you call a jsp, you can invoke a java commands.

                Tracy