I need to write a client that will dispatch events in multiple threads. I need to re-use thread pool from my application server so I am not able to use threadedCallbacks feature of the BrokerClient.
What is the strategy in this situation?
Is it ok to create multiple threads with multiple while(true) loops and call dispatch from it?
Or is there a way to hook up somehow the start of dispatch point and delegate the work to the thread from my own thread pool. Or application thread respectively.