I'm looking at java's waitFor().  When I use it in a CFC though, I 
think its just looping forever.

Here's what I have so far:

<cfset var myObject = createObject
("java", "java.lang.Runtime").getRuntime()>
<cfset startProcess = myObject.exec("someSoftware.exe")>
<cfset checkProcess = myObject.waitFor()>
<cfreturn checkProcess>

When running this cffunction as a WebService from Flex2, it leaves a 
never ending busy cursor.  If I remove checkProcess and return 
startProcess instead, I have some kind of java string - a thread 
identifier or something?  i.e.:

[EMAIL PROTECTED]

Its really quite simple - I don't know enough about java to make this 
happen and the Java reference perplexes me when in-context with 
Coldfusion.  Any help is appreciated.

Reply via email to