private void subscribeToAlarmTopic() throws JMSException {
  alarmSession=connection.createSession(false,Session.AUTO_ACKNOWLEDGE);
  alarmConsumer=alarmSession.createConsumer(alarmTopic);
  alarmConsumer.setMessageListener(alarmListenerWrapper);
  LOGGER.debug("Successfully subscribed to alarm topic");
}

private void subscribeToAlarmTopic ( ) throws JMSException { alarmSession = connection . createSession ( false , Session . AUTO_ACKNOWLEDGE ) ; alarmConsumer = alarmSession . createConsumer ( alarmTopic ) ; alarmConsumer . setMessageListener ( alarmListenerWrapper ) ; LOGGER . debug ( "Successfully subscribed to alarm topic" ) ; }
subscribes to the alarm topic .
