Hi all,
I am developing an application that uses JMS and needs to start with or without the connection to broker was stablished or not. For this, I am coding a reconnect thread that is spawned when the initial reconnects fail. I've set this connection strings: failover://(tcp://10.0.2.22:61616 )?startupMaxReconnectAttempts=1&initialReconnectDelay=1&maxReconnectDelay=1 When the application starts and try to connect, if it fails, the thread is spawned and trying to reconnect every 30 seconds, with this case I can see two weirds behaviours. - Every time that the thread wants to reconnect, the process eats the 100% of the cpu. I've follow the code and I dont know why, but in the function bool CountDownLatch::await( long long timeOut ) I have a mutex wait timeOut that is equal to 15000 seconds. mutex.wait( timeOut ); Why the code is waiting 15000 seconds? why it takes the 100% of the cpu? The await function is called by: Pointer<Response> ResponseCorrelator::request --> response = futureResponse->getResponse( timeout ); Im developing in windows 2000. Regards -- Óscar Pernas Plaza.