Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.5)

Part Number E13941-05

weblogic.jms.extensions
Class ConsumerClosedException

java.lang.Object
  extended by javax.jms.JMSException
      extended by weblogic.jms.common.JMSException
          extended by weblogic.jms.extensions.ConsumerClosedException

public final class ConsumerClosedException
extends weblogic.jms.common.JMSException

ConsumerClosedException is delivered to the ExceptionListener for a session (if set), when one of session's consumer is closed by the server as a result of a server failure or administrative intervention.


Constructor Summary
ConsumerClosedException(MessageConsumer consumer, String reason)
          Constructs a ConsumerClosedException that includes the reason for exception.
ConsumerClosedException(MessageConsumer consumer, String reason, String errorCode)
          Constructs a ConsumerClosedException that includes a reason and an errorCode for exception.
 
Method Summary
 MessageConsumer getConsumer()
          Gets the reference to the consumer that was closed
 void setConsumer(MessageConsumer consumer)
          Sets a reference to the consumer that was closed.
 
Methods inherited from class weblogic.jms.common.JMSException
getLinkedException, isInformational, setLinkedException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsumerClosedException

public ConsumerClosedException(MessageConsumer consumer,
                               String reason,
                               String errorCode)
Constructs a ConsumerClosedException that includes a reason and an errorCode for exception.

Parameters:
reason - a description of the exception.
errorCode - a string specifying the vendor specific error code.

ConsumerClosedException

public ConsumerClosedException(MessageConsumer consumer,
                               String reason)
Constructs a ConsumerClosedException that includes the reason for exception.

Parameters:
reason - the description of the exception.
Method Detail

getConsumer

public MessageConsumer getConsumer()
Gets the reference to the consumer that was closed

Returns:
the reference to the consumer that was closed

setConsumer

public void setConsumer(MessageConsumer consumer)
Sets a reference to the consumer that was closed.


Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.5)

Part Number E13941-05