Re: Running not multithreaded application

2011-12-24 Thread Pid
On 23/12/2011 02:05, hernan wrote: >> >> On 12/14/11 5:45 PM, hernan wrote: >>> I'm using Tomcat 7.0 for developing a new application. A key >>> component in the application have to run an external not >>> multithreaded application. >>> >>> Since I'm not an experienced user

Re: Running not multithreaded application

2011-12-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hernán, On 12/23/11 4:24 PM, hernan wrote: > Process p = Runtime.getRuntime().exec(...); > > // Sending input to process p OutputStream os = > p.getOutputStream(); BufferedWriter bw = new BufferedWriter(new > OutputStreamWriter(os)); [...] // send in

Re: Running not multithreaded application

2011-12-23 Thread hernan
On Fri, Dec 23, 2011 at 12:00 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hernan, > > On 12/22/11 9:47 PM, hernan wrote: > > Finally, I'm just using Runtime.exec() to execute a c++ program > > that uses glpk, and using stdin/

Re: Running not multithreaded application

2011-12-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hernan, On 12/22/11 9:47 PM, hernan wrote: > Finally, I'm just using Runtime.exec() to execute a c++ program > that uses glpk, and using stdin/stdout to communicate them. The > whole system is running tomcat, axis2, java and c/c++. Just be very caref

Re: Running not multithreaded application

2011-12-22 Thread hernan
On Thu, Dec 15, 2011 at 4:48 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hernan, > > On 12/15/11 12:47 PM, hernan wrote: > > As separate process, I thought a java "server" process with the > > wrapper that receive requests, l

Re: Running not multithreaded application

2011-12-22 Thread hernan
> > On 12/14/11 5:45 PM, hernan wrote: > > I'm using Tomcat 7.0 for developing a new application. A key > > component in the application have to run an external not > > multithreaded application. > > > > Since I'm not an experienced user in Tomcat, I wonder which > > im

Re: Running not multithreaded application

2011-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hernan, On 12/15/11 12:47 PM, hernan wrote: > As separate process, I thought a java "server" process with the > wrapper that receive requests, launch a new process an response > with the result. The servlet (thread) calls the process using some > kin

Re: Running not multithreaded application

2011-12-15 Thread Pid *
On 15 Dec 2011, at 17:56, hernan wrote: > On Thu, Dec 15, 2011 at 12:27 PM, Pid wrote: > >> On 15/12/2011 00:15, hernan wrote: >>> On Wed, Dec 14, 2011 at 8:17 PM, Christopher Schultz < >>> ch...@christopherschultz.net> wrote: >>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: Running not multithreaded application

2011-12-15 Thread hernan
On Thu, Dec 15, 2011 at 12:27 PM, Pid wrote: > On 15/12/2011 00:15, hernan wrote: > > On Wed, Dec 14, 2011 at 8:17 PM, Christopher Schultz < > > ch...@christopherschultz.net> wrote: > > > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA1 > >> > >> Hernán, > >> > >> On 12/14/11 5:45 PM, hernan

Re: Running not multithreaded application

2011-12-15 Thread hernan
On Thu, Dec 15, 2011 at 12:25 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hernan, > > On 12/14/11 7:15 PM, hernan wrote: > > On Wed, Dec 14, 2011 at 8:17 PM, Christopher Schultz < > >> What makes this "external" "program" non

Re: Running not multithreaded application

2011-12-15 Thread Pid
On 15/12/2011 00:15, hernan wrote: > On Wed, Dec 14, 2011 at 8:17 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Hernán, >> >> On 12/14/11 5:45 PM, hernan wrote: >>> I'm using Tomcat 7.0 for developing a new application.

Re: Running not multithreaded application

2011-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hernan, On 12/14/11 7:15 PM, hernan wrote: > On Wed, Dec 14, 2011 at 8:17 PM, Christopher Schultz < >> What makes this "external" "program" non-multithreaded? Is it >> actually not threadsafe? >> >> If you can't run it in the same process as Tomcat,

Re: Running not multithreaded application

2011-12-14 Thread hernan
On Wed, Dec 14, 2011 at 8:17 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hernán, > > On 12/14/11 5:45 PM, hernan wrote: > > I'm using Tomcat 7.0 for developing a new application. A key > > component in the application have to

Re: Running not multithreaded application

2011-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hernán, On 12/14/11 5:45 PM, hernan wrote: > I'm using Tomcat 7.0 for developing a new application. A key > component in the application have to run an external not > multithreaded application. > > Since I'm not an experienced user in Tomcat, I wonde

Running not multithreaded application

2011-12-14 Thread hernan
Hello, I'm using Tomcat 7.0 for developing a new application. A key component in the application have to run an external not multithreaded application. Since I'm not an experienced user in Tomcat, I wonder which implementation alternatives do you recommend for running my external application. I'm