Java Code Examples for javax.jms.ExceptionListener#onException()
The following examples show how to use
javax.jms.ExceptionListener#onException() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractMessageListenerContainer.java From spring-analysis-note with MIT License | 5 votes |
/** * Invoke the registered JMS ExceptionListener, if any. * @param ex the exception that arose during JMS processing * @see #setExceptionListener */ protected void invokeExceptionListener(JMSException ex) { ExceptionListener exceptionListener = getExceptionListener(); if (exceptionListener != null) { exceptionListener.onException(ex); } }
Example 2
Source File: SingleConnectionFactory.java From spring-analysis-note with MIT License | 5 votes |
@Override public void onException(JMSException ex) { // Iterate over temporary copy in order to avoid ConcurrentModificationException, // since listener invocations may in turn trigger registration of listeners... Set<ExceptionListener> copy; synchronized (connectionMonitor) { copy = new LinkedHashSet<>(this.delegates); } for (ExceptionListener listener : copy) { listener.onException(ex); } }
Example 3
Source File: AbstractMessageListenerContainer.java From java-technology-stack with MIT License | 5 votes |
/** * Invoke the registered JMS ExceptionListener, if any. * @param ex the exception that arose during JMS processing * @see #setExceptionListener */ protected void invokeExceptionListener(JMSException ex) { ExceptionListener exceptionListener = getExceptionListener(); if (exceptionListener != null) { exceptionListener.onException(ex); } }
Example 4
Source File: SingleConnectionFactory.java From java-technology-stack with MIT License | 5 votes |
@Override public void onException(JMSException ex) { // Iterate over temporary copy in order to avoid ConcurrentModificationException, // since listener invocations may in turn trigger registration of listeners... Set<ExceptionListener> copy; synchronized (connectionMonitor) { copy = new LinkedHashSet<>(this.delegates); } for (ExceptionListener listener : copy) { listener.onException(ex); } }
Example 5
Source File: AbstractMessageListenerContainer.java From spring4-understanding with Apache License 2.0 | 5 votes |
/** * Invoke the registered JMS ExceptionListener, if any. * @param ex the exception that arose during JMS processing * @see #setExceptionListener */ protected void invokeExceptionListener(JMSException ex) { ExceptionListener exceptionListener = getExceptionListener(); if (exceptionListener != null) { exceptionListener.onException(ex); } }
Example 6
Source File: SingleConnectionFactory.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public void onException(JMSException ex) { synchronized (connectionMonitor) { // Iterate over temporary copy in order to avoid ConcurrentModificationException, // since listener invocations may in turn trigger registration of listeners... for (ExceptionListener listener : new LinkedHashSet<ExceptionListener>(this.delegates)) { listener.onException(ex); } } }
Example 7
Source File: ChainedExceptionListener.java From spring-analysis-note with MIT License | 4 votes |
@Override public void onException(JMSException ex) { for (ExceptionListener listener : this.delegates) { listener.onException(ex); } }
Example 8
Source File: ChainedExceptionListener.java From java-technology-stack with MIT License | 4 votes |
@Override public void onException(JMSException ex) { for (ExceptionListener listener : this.delegates) { listener.onException(ex); } }
Example 9
Source File: ChainedExceptionListener.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override public void onException(JMSException ex) { for (ExceptionListener listener : this.delegates) { listener.onException(ex); } }
Example 10
Source File: JmsConnection.java From qpid-jms with Apache License 2.0 | 4 votes |
public void onException(JMSException ex) { ExceptionListener listener = this.exceptionListener; if (listener != null) { listener.onException(JmsExceptionSupport.create(ex)); } }