General J2EE: Java program calling VB (transfer data back and forth)
Does anyone know that how can I invoke a VB program by using java code, and I want to transfer data back and forth? (The java program may create multiple threads and each of them may call a VB program and submit some data. After VB processes the data, java program wants the result back).
- Posted by: Di He
- Posted on: January 06 2004 22:07 EST
- Java program calling VB (transfer data back and forth) by David Rabinowitz on January 07 2004 05:08 EST
You can use Runtime.exec(), and then use the input and output streams. Since console applications are not that easy to write in VB, I'd suggest you use TCP to communicate betwen them.