I have a below code, to run this approximately it is taking more than 2 seconds. Please can some one advise what I am doing incorrect here? thanks
try {
cf = (ConnectionFactory) ic.lookup("jms/ConnectionFactory");
pQueue = (Queue) ic.lookup("jms/PhysicalQueueName");
} catch (NamingException e) {
System.err.println("JNDI API lookup failed: " + e.toString());
e.printStackTrace();
System.exit(1);
}
Here is the time stamp for before this code run and after..
Before: 2008-08-27 07:47:50.735
After : 2008-08-27 07:47:52.916
Some times it is taking more than 3 seconds. And this is happening for my each request.
My App server running on local machine.
[Message sent by forum member 'banther' (banther)]
http://forums.java.net/jive/thread.jspa?messageID=295622