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/