[Quickfix-developers] Server Thread
Brought to you by:
orenmnero
From: Rob K. <ro...@ri...> - 2003-03-24 22:23:51
|
I am creating a GUI application to forward orders to a counterparty, = from another counterparty. Everything is working fine, I just have one = question. My application creates both an Acceptor and an Initiator. I = noticed that when I tried to start the Acceptor with Acceptor.start() my = application would hang. I soon realized that the start method claims = the thread you use to call the method. To fix that I spawned another = thread to invoke the start method. my GUI began to behave properly, but = the thread that began looping in the onRun was not the same thread that = I used to invoke the start method. Am I missing some basic concept = here, or is this how it is supposed to work. I just don't want random = threads laying around doing nothing. |