openjms "receiver hang" problem
"Laszlo Schaffer personal" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <000501c5c8ad$037035b0$7201a8c0@safhome> |
Hello
I found the following problem (with openjms 0.7.6)
A server application (ChatServer) runs on a linux server. There are four
queue that are used (two for client communikation send,receive).
Client app connect to the server with tcps . The system runs well but after
some days if a network error occure (sometimes the connection has broken)
however the clients can establish the connection itself the client program
wait forever in this call (in bold)
session = queueConnection.createQueueSession(
false, Session.CLIENT_ACKNOWLEDGE); // ok returned
destination = (javax.jms.Queue) context.lookup(destinationName); // ok
returned
receiver = ( (QueueSession) session).createReceiver( (javax.jms.Queue)
destination, selector); // never returned
(However there is another server app that runs on the same linux machine and
communicate with the chatserver throug jms without problem but the clients
cannot. it seems there is (memory?) problem with just this queue/thread?)
At first the it was set to use PERSISTENT messages. The problem occurs after
approx every day. Then I increased the heap size of the jms server and
changed the type of messages to NON_PERSISTENT, now it has worked fine
approx 4days after that it come this problem again.. (Now I am set the
GarbageCollectorConfig. in the jms config but I am not sure this is a real
solution)
Any idee?
saf