You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by David Blevins <da...@visi.com> on 2010/06/02 09:18:19 UTC

Re: starting a process from a stateless EJB

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