-
1. Re: UIL2: How to tune it to stop client disconnected errors?
mylesj Jun 24, 2004 7:14 AM (in response to mylesj)An additional question: does the message listener thread, the one that invokes onMessage() also respond to server "keep alive" ping requests? The reason I ask is that I have a sneaking suspicion that if the thread that invokes onMessage() is tied up with processing lots of business logic then it is not in a position to respond to ping messages thereby making JBoss think that the client is not responding and then closing the connection.
-
2. Re: UIL2: How to tune it to stop client disconnected errors?
genman Jun 24, 2004 3:49 PM (in response to mylesj)
The onMessage processing happens in its own separate thread.
It looks like pingPeriod set to zero disables it.
./src/main/org/jboss/mq/Connection.java
1306 /**
1307 * Start the ping thread
1308 */
1309 private void startPingThread()
1310 {
1311 // Ping thread does not need to be running if the ping period is 0.
1312 if (pingPeriod == 0)
1313 return;
1314 pingTaskId = clockDaemon.executePeriodically(pingPeriod, new PingTask(), true);
1315 }