List of usage examples for javax.jms Destination hashCode
@HotSpotIntrinsicCandidate public native int hashCode();
From source file:de.marcelsauer.jmsloadtester.handler.DestinationHandlerImpl.java
@Override public synchronized Destination getDestination(final String name) { Destination dest = getCached(name); if (dest != null) { Logger.debug("returning cached destination: " + dest + " " + dest.hashCode()); } else {//from ww w. j a v a 2 s. c om try { dest = (Destination) jndiTemplate.lookup(name); Logger.debug("returning newly created destination: [" + dest + "] " + dest.hashCode()); putCached(name, dest); } catch (NamingException e) { // JndiUtil.printBindings(jndiTemplate.); throw new JmsException("could not lookup destination " + name, e); } } return dest; }