Posted By:
Al_Lelopath
Posted On:
Thursday, September 9, 2004 10:38 AM
I am creating a client/server application, mostly in Java. It all runs on one box. The reason for the client/server setup is that the application will consist of modules in different languages with one module written in Visual Basic with a TCP/IP interface. I will have something like this: myJavaServer |_ myVBModule |_ myC++Module |_ myJavaModule myJavaServer is a thread. myJavaServer and myVBModule will communciate via TCP/IP, in which each has a state machine myJavaServer and myC++Module will probably communicate via the JNI. myJavaServer will simply call myJavaModule methods.
More>>
I am creating a client/server application, mostly in Java.
It all runs on one box.
The reason for the client/server setup is that the application will consist of modules in different languages
with one module written in Visual Basic with a TCP/IP interface.
I will have something like this:
myJavaServer
|_ myVBModule
|_ myC++Module
|_ myJavaModule
myJavaServer is a thread.
myJavaServer and myVBModule will communciate via TCP/IP, in which each has a state machine
myJavaServer and myC++Module will probably communicate via the JNI.
myJavaServer will simply call myJavaModule methods.
myJavaServer calls myVBModule, myC++Module, and myJavaModule sequentially,
i.e. it can't call myC++Module until myVBModule is done, can't call myJavaModule until myC++Module is done, and when myJavaModule is done, it will loop back and call myVBModule.
Each is acting on the same set of data.
One part of this data is a 2D array which I would like to display and refresh once each time around the loop
The display will be some JPanels on a JFrame.
How do I best integrate this with the rest of the program?
Do I make it a separate Thread?
<<Less