tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject Re: starting a process from a stateless EJB
Date Wed, 02 Jun 2010 07:18:19 GMT

On May 31, 2010, at 12:10 AM, joe wrote:

> Am 28.05.2010 19:21, schrieb Andy:
>> You can do anything you want in an EJB, as long as you understand the
>> lifecycle of an EJB. The only question here is if you want to keep hold
>> of the process?
> 
> Nope, just executing a native application, and read the stdout, stderr.
> So i go this way for awhile, thx

On a side note, feel free to grab a copy of this class.  It's super useful for dealing with
the stdin, stdout, and stderr of the forked process:

  http://svn.apache.org/repos/asf/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/util/Pipe.java

-David


Mime
View raw message