Re: openjms "receiver hang" problem
Felipe Palma Dias <palmadias-/E1597aS9LRfJ/[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
I am with the same problem. My code: connection = getTopicConnection(); session = connection.createTopicSession(false, Session.CLIENT_ACKNOWLEDGE); // never returned Topic topic = (Topic)getContext().lookup(SessionContext.getSession().getTopic()); subscriber = session.createDurableSubscriber(topic, "xxxx"); I am using 0.7.6.1 and rmi connection. --- Laszlo Schaffer personal <[email protected]> escreveu: > 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 > > Felipe F. Palma Dias - São Paulo/SP http://www.palmadias.com.br MSN: palmadias-/E1597aS9LRfJ/[email protected] Yahoo: palmadias Mobile: +55 11 99157578 _______________________________________________________ Novo Yahoo! Messenger com voz: ligações, Yahoo! Avatars, novos emoticons e muito mais. Instale agora! www.yahoo.com.br/messenger/ ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl