users@glassfish.java.net

Spawning a process from within web service.

From: <glassfish_at_javadesktop.org>
Date: Fri, 25 Jan 2008 15:18:17 PST

I know it's ugly but...

I have some code that spawns a process from within some web service code.

Within my web service, I use

[code]
myRuntime = Runtime.getRuntime();
myRuntime.exec(command, envp, dir);
[/code]
Where I've set up command, etc. to run my program. (Actually, for debugging
purposes I normally run my code inside an xterm with the -e and -hold options
so I can see what it's doing.)

I had my code working in Tomcat, but so far it seems that it's not working in Glassfish. Hmmm....

I wonder if there's some security setting or other configuration I'm missing? Is there anything special I have to do to get Glassfish to allow this bit of code to work?

Thanks,
Duncan
[Message sent by forum member 'duncant' (duncant)]

http://forums.java.net/jive/thread.jspa?messageID=255888