Hi
Thanks for your attention.
This morning, my JMS works a little better: with 20 clients, I measured a
delay of 17 minutes.
The delay is divided in two points:

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);

... 6 minutes ...

QueueConnectionFactory qConFactory = (QueueConnectionFactory)
jndi.lookup("QueueConnectionFactory");
TopicConnectionFactory tConFactory = (TopicConnectionFactory)
jndi.lookup("TopicConnectionFactory");
qCon = qConFactory.createQueueConnection(<user>, <pwd>);
tCon = tConFactory.createTopicConnection(<user>, <pwd>);

... 11 minutes ...

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();




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Gregor Kovae
Sent: mercoledi 1 agosto 2001 9.33
To: [EMAIL PROTECTED]
Subject: [developers] Long long connection time


*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hi!

Can you please point us to the line where it waits for so long ?

Best regards,
         Kovi

At 08:47 1.8.01 +0200, you wrote:

>Hi.
>
>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/


------------------------------------------------------
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/


------------------------------------------------------
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/




Reply via email to