This content has been marked as final.
Show 1 reply
-
1. Re: createQueueSession - causing timeout
adrian.brock Jul 9, 2004 11:19 PM (in response to spyer)public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException { if (closed) throw new IllegalStateException("The connection is closed"); checkClientID(); if (transacted) acknowledgeMode = 0; Session session = new SpySession(this, transacted, acknowledgeMode, false); //add the new session to the createdSessions list synchronized (createdSessions) { createdSessions.add(session); } return session; }
The checkClientID() is the only part that does any work. It contacts the server to
get the next client id.
If this is taking 20 seconds, your network connection is fscked,
my first guess would be a dodgy DNS server.