/** * Close a JMS message listener. * * @param serverKey Name of the jms-service * @throws GenericServiceException */ public void closeListener(String serverKey) throws GenericServiceException { GenericMessageListener listener = listeners.get(serverKey); if (listener == null) throw new GenericServiceException("No listener found with that serverKey."); listener.close(); }