com.j_spaces.jms
Class SpaceLostException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.jms.JMSException
              extended by com.j_spaces.jms.SpaceLostException
All Implemented Interfaces:
Serializable

public class SpaceLostException
extends JMSException

The JMS layer uses this exception to notify to the JMS client about transaction abortion due to a space failure. The JMS layer sends this exception to the ExceptionListener of the Connection. The JMS client has to register an ExceptionListener on that Connection to receive this notification. The results of the space failure are: If the session is in CLIENT_ACKNOWLEDGE mode unacknowledged messages are recovered. If the session is transacted unacknowledged messages are recovered and produced messages are lost. The client has to respond to the space failure accordingly. To get the session that threw the exception simply call getSession.

See Also:
Serialized Form

Method Summary
 Session getSession()
          Returns the session that threw the exception.
 
Methods inherited from class javax.jms.JMSException
getErrorCode, getLinkedException, setLinkedException
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSession

public Session getSession()
Returns the session that threw the exception.

Returns:
the session that threw the exception.