Connection conn = null;
try {
conn = ServerDbInfo.getTranDbConnectionInfo().getConnection(
DBConnectionInfo.SUGGESTED_TIMEOUT_FOR_GET_CONNECTION);
} catch (SQLException ex) {
throw new JmsServerException("Failed to get a connection to the backend database", ex);
}
JmsLocationInfoStore infoStore = new JmsLocationInfoDbStore(conn);
Map<Long, LocationProperties> opToLocationPropsMap = infoStore.getJmsLocationInfo();
for (Entry<Long, LocationProperties> entry : opToLocationPropsMap.entrySet()) {
Listener listener = new Listener(entry.getValue());