Class SolaceConsumerConnectionErrorHandler

  • All Implemented Interfaces:
    ComponentLifecycle, ConnectionErrorHandler, com.solacesystems.jms.SolConsumerEventListener, javax.jms.ExceptionListener

    @ComponentProfile(summary="A connection error handler that listens for Solace queue shutdown events.",
                      tag="consumer,jms,error-handler")
    public class SolaceConsumerConnectionErrorHandler
    extends JmsConnectionErrorHandler
    implements com.solacesystems.jms.SolConsumerEventListener

    A custom connection error handler that can be configured on your Solace consumers.

    This connection error handler uses the same standard JMSException listener, but additionally will listen for queue shutdown events, therefore triggering the exception handler.

    If you use this error handler and a JmsConsumer (rather than PtpConsumer or PasConsumer) then you will also need to set the advanced property of deferConsumerCreationToVendor to true on your JmsConsumer. This will allow us to continue to try to create the consumer on restart until the queue has been bought back up again.

    • Constructor Detail

      • SolaceConsumerConnectionErrorHandler

        public SolaceConsumerConnectionErrorHandler()