public Object doInJms(Session session) throws JMSException { try { processInOnlyInSession(exchange, in, session); return null; } catch (JMSException e) { throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new UncategorizedJmsException(e); } } };
public Object doInJms(Session session) throws JMSException { try { processInOutInSession(exchange, in, session); return null; } catch (JMSException e) { throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new UncategorizedJmsException(e); } } };
public void removeRemoteBridge(RemoteBridge remoteBridge) { synchronized (lifecycleMonitor) { if (!remoteBridges.remove(remoteBridge)) { throw new UncategorizedJmsException("Not found remote bridge " + remoteBridge); String msg = "Error removing inbound connector for " + remoteBridge + " : " + e.getMessage(); LOG.error(msg, e); throw new UncategorizedJmsException(msg , e); String msg = "Error removing outbound connector for " + remoteBridge + " : " + e.getMessage(); LOG.error(msg, e); throw new UncategorizedJmsException(msg , e);
@Override public void setDestinationsConfig( BridgeDestinationsConfig destinationsConfig) throws JmsException { synchronized (lifecycleMonitor) { if (destinationsConfig == null) { throw new UncategorizedJmsException("Invalid destinations config"); } // remember current state boolean wasRunning = isRunning(); // destroy and recreate the connector try { destroy(); } catch (Exception e) { LOG.error("Error destroying connector: " + e.getMessage(), e); // ignore and keep going?? } this.inboundDestinations = destinationsConfig; try { afterPropertiesSet(); } catch (Exception e) { throw new UncategorizedJmsException(e.getMessage(), e); } if (wasRunning) { doStart(); } } }
throw new UncategorizedJmsException("Invalid destinations config"); afterPropertiesSet(); } catch (Exception e) { throw new UncategorizedJmsException(e.getMessage(), e);
throw new UncategorizedJmsException("Invalid destinations config"); afterPropertiesSet(); } catch (Exception e) { throw new UncategorizedJmsException(e.getMessage(), e);
String msg = "Remote bridge " + remoteBridge + " already exists in Gateway"; LOG.error(msg); throw new UncategorizedJmsException(msg); String msg = "Error creating inbound connector for " + remoteBridge + " : " + e.getMessage(); LOG.error(msg, e); throw new UncategorizedJmsException(msg , e); String msg = "Error starting inbound connector for " + remoteBridge + " : " + e.getMessage(); LOG.error(msg, e); throw new UncategorizedJmsException(msg , e); String msg = "Error creating outbound connector for " + remoteBridge + " : " + e.getMessage(); LOG.error(msg, e); throw new UncategorizedJmsException(msg , e); String msg = "Error starting outbound connector for " + remoteBridge + " : " + e.getMessage(); LOG.error(msg, e); throw new UncategorizedJmsException(msg , e);
return new UncategorizedJmsException(ex);
return new UncategorizedJmsException(ex);