-----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 which > implementation alternatives do you recommend for running my > external application. I'm trying to avoid launch a new os process > from java since I need the result of that process, so in this way > I've to deal communicating two processes (may be using serializable > objects using sockets). So, is this other program a Java program? Since you said "serializable" you probably are talking about running another Java "program". 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 have to either use Runtime.exec or some type of wrapper around it -- or have that process running completely separately (as a daemon) and connect to it via sockets. Anything else requires native code, which you definitely don't want. > I want to know which kind of approachs are used to deal with these > type of situations. What about running in-process? Even if the class(es) is(are) not threadsafe, you might be able to use separate instances from your request processor threads. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7pLp0ACgkQ9CaO5/Lv0PAjUwCgtac2NvrAvv+BnyOXmpZ7gUGN DBQAn0QmyKonMzuGh6gpzvFaQuGBVqgd =ZFKJ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org