2 Replies Latest reply on Jun 16, 2010 1:41 AM by dargre

    Best way to pass data back and forth from multiple NativeProcess threads

    dargre

      Hi all,

      We have an application that requires multiple concurrent accesses to mulitple instances of a java NativeProcess. The input and output is XML data. I can see how to shunt this back and forth with only a single listening thread on stdout, but with multiple threads the whole thing is going to get rather jumbled. At the moment we are looking at using temporary files to read and write data from each instance, but I wonder if there might be a better way ... any suggestions?

      Thanks.