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 in Tomcat, I wonder which implementation

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 careful

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/stdout to

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 input

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 implementation alternatives do you

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, launch a new

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, then you'll

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. A key component

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-multithreaded?

Re: Running not multithreaded application

2011-12-15 Thread hernan
On Thu, Dec 15, 2011 at 12:27 PM, Pid p...@pidster.com 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 wrote:

Re: Running not multithreaded application

2011-12-15 Thread Pid *
On 15 Dec 2011, at 17:56, hernan hbe...@gmail.com wrote: On Thu, Dec 15, 2011 at 12:27 PM, Pid p...@pidster.com 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 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 kind of

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.

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 wonder

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 run an