BEA Systems, Inc.

BEA WebLogic Server 9.1 API Reference


weblogic.jms.extensions
Class ConsumerClosedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.jms.JMSException
              extended byweblogic.jms.common.JMSException
                  extended byweblogic.jms.extensions.ConsumerClosedException
All Implemented Interfaces:
Serializable

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.

See Also:
Serialized Form
Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

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 javax.jms.JMSException
getErrorCode
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsumerClosedException

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


ConsumerClosedException

public ConsumerClosedException(MessageConsumer consumer,
                               String reason,
                               String errorCode)
Constructs a ConsumerClosedException that includes a reason and an errorCode for 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.


Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs91
Copyright 2005 BEA Systems Inc.