Trying to create a queuesession to a remote queue, context lookup is acceptable but
the createQueueSession is taking a long time and is timing out, can anyone help.
Hashtable env = new Hashtable();
env.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
env.put("java.naming.provider.url", "remote_host:1099");
env.put("java.naming.factory.url.pkgs","org.jboss.naming");
InitialContext ctx = new InitialContext(env);
System.out.println("1 : "+new Date());
QueueConnectionFactory qfc = (QueueConnectionFactory)
ctx.lookup("ConnectionFactory");
System.out.println("2 : "+new Date());
QueueConnection queConn = qfc.createQueueConnection();
System.out.println("3 : "+new Date());
Queue que = (Queue) ctx.lookup("queue/ResultsQ4"); // q relevant to
session id
System.out.println("4 : "+new Date());
QueueSession session = queConn.createQueueSession(false,
QueueSession.AUTO_ACKNOWLEDGE);
System.out.println("5 : "+new Date());
queConn.start();
System.out.println("6 : "+new Date());
results :
1 : Fri Jul 09 17:05:12 BST 2004
2 : Fri Jul 09 17:05:12 BST 2004
3 : Fri Jul 09 17:05:13 BST 2004
4 : Fri Jul 09 17:05:13 BST 2004
5 : Fri Jul 09 17:05:34 BST 2004
6 : Fri Jul 09 17:05:34 BST 2004
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841539#3841539
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841539
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user