Hi.
I'm experiencing something strange with SwiftMQ.
The JMS server and client machine are on the same intranet; the
server is dual processor, with 512MB RAM.
Neverthless, when I try to open a JMS session from a single client to the
server,
I have to wait 20 secs before the server gives me the connection to the
queue.
If I use 20 clients at the same time, the wait time rise up to 25 minutes!
Is that normal or I did something wrong?
Thanks in advance.
Stefano Visconti
PS: Here is the code I use for the connection:
Properties env = new Properties();
env.put(InitialContext.INITIAL_CONTEXT_FACTORY,
"com.swiftmq.jndi.InitialContextFactoryImpl");
env.put(InitialContext.PROVIDER_URL, "smqp://<server>:4001/timeout=10000");
InitialContext jndi = new InitialContext(env);
QueueConnectionFactory qConFactory = (QueueConnectionFactory)
jndi.lookup("QueueConnectionFactory");
TopicConnectionFactory tConFactory = (TopicConnectionFactory)
jndi.lookup("TopicConnectionFactory");
qCon = qConFactory.createQueueConnection(<user>, <pwd>);
tCon = tConFactory.createTopicConnection(<user>, <pwd>);
rSession = qCon.createQueueSession(false, QueueSession.CLIENT_ACKNOWLEDGE);
sSession = qCon.createQueueSession(false, QueueSession.CLIENT_ACKNOWLEDGE);
TopicSession subSession = tCon.createTopicSession(false,
TopicSession.CLIENT_ACKNOWLEDGE);
Queue rQueue = (Queue) jndi.lookup("rQueue");
Queue sQueue = (Queue) jndi.lookup("sQueue");
Topic aTopic = (Topic) jndi.lookup("aTopic");
jndi.close();
rSender = rSession.createSender(rQueue);
sSender = sSession.createSender(sQueue);
String condition = "cond=<value>";
TopicSubscriber subscriber = subSession.createSubscriber(aTopic, condition,
false);
subscriber.setMessageListener(this);
qCon.start();
tCon.start();
---------------------------
Stefano Visconti
Neptuny s.r.l.
e-mail: [EMAIL PROTECTED]
------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/