Package javax.jms

Examples of javax.jms.ExceptionListener.onException()


                  new Thread(new Runnable()
                  {
                     public void run()
                     {
                        exceptionListener.onException(je);
                     }
                  }).start();
               }
            }
            catch (JMSException e)
View Full Code Here


     * @param jmsEx
     */
    protected void fireException(JMSException jmsEx) {
        ExceptionListener listener = getExceptionListener();
        if (listener != null) {
            listener.onException(jmsEx);
        }
    }

    protected TransportChannel getEstablishedChannel(long timeout) throws JMSException {
        if (!closed.get() && this.channel == null && !isPendingStop()) {
View Full Code Here

    {
        // deliver the exception if there is a listener
        ExceptionListener exceptionListener = getExceptionListenerNoCheck();
        if (exceptionListener != null)
        {
            exceptionListener.onException(je);
        }
        else
        {
            _logger.error("Throwable Received but no listener set: " + cause);
        }
View Full Code Here

                if(exceptionListener != null)
                {
                    final org.apache.qpid.amqp_1_0.type.transport.Error connectionError = _conn.getConnectionError();
                    if(connectionError != null)
                    {
                        exceptionListener.onException(new JMSException(connectionError.getDescription(),
                                connectionError.getCondition().toString()));
                    }
                }
            }
            catch (JMSException ignored)
View Full Code Here

                        MessageConsumerException mce = new MessageConsumerException(
                                receiverError.getDescription(),
                                receiverError.getCondition().getValue().toString(),
                                _destination.getAddress());

                        exceptionListener.onException(mce);
                    }
                }
                catch (JMSException e)
                {
View Full Code Here

                            {
                                SessionException se = new SessionException(
                                        error.getDescription(),
                                        error.getCondition().getValue().toString());

                                exceptionListener.onException(se);
                            }
                            else
                            {
                                exceptionListener.onException(new SessionException("Session remotely closed"));
                            }
View Full Code Here

                                exceptionListener.onException(se);
                            }
                            else
                            {
                                exceptionListener.onException(new SessionException("Session remotely closed"));
                            }
                        }
                    }
                    catch (JMSException e)
                    {
View Full Code Here

                            consumers.remove();
                            try
                            {
                                ExceptionListener expListener = _connection.getExceptionListener();
                                if (expListener != null)
                                    expListener.onException(e);
                                consumer.close();
                            }
                            catch (JMSException e1)
                            {
                            }
View Full Code Here

     * @param jmsEx
     */
    protected void fireException(JMSException jmsEx) {
        ExceptionListener listener = getExceptionListener();
        if (listener != null) {
            listener.onException(jmsEx);
        }
    }

    protected void doReconnect(TransportChannel currentChannel) throws JMSException {
        if (!closed.get()) {
View Full Code Here

                  new Thread(new Runnable()
                  {
                     public void run()
                     {
                        exceptionListener.onException(je);
                     }
                  }).start();
               }
            }
            catch (JMSException e)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.