com.j_spaces.jms
Class SpaceLostException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.jms.JMSException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
getSession
public Session getSession()
- Returns the session that threw the exception.
- Returns:
- the session that threw the exception.