Search in sources :

Example 1 with UnableToDestroySubscriptionFaultType

use of org.oasis_open.docs.wsn.b_2.UnableToDestroySubscriptionFaultType in project cxf by apache.

the class JmsSubscription method unsubscribe.

@Override
protected void unsubscribe() throws UnableToDestroySubscriptionFault {
    super.unsubscribe();
    if (session != null) {
        try {
            session.close();
            checkTermination = false;
        } catch (JMSException e) {
            UnableToDestroySubscriptionFaultType fault = new UnableToDestroySubscriptionFaultType();
            throw new UnableToDestroySubscriptionFault("Unable to unsubscribe", fault, e);
        } finally {
            session = null;
        }
    }
}
Also used : UnableToDestroySubscriptionFaultType(org.oasis_open.docs.wsn.b_2.UnableToDestroySubscriptionFaultType) UnableToDestroySubscriptionFault(org.oasis_open.docs.wsn.bw_2.UnableToDestroySubscriptionFault) JMSException(javax.jms.JMSException)

Aggregations

JMSException (javax.jms.JMSException)1 UnableToDestroySubscriptionFaultType (org.oasis_open.docs.wsn.b_2.UnableToDestroySubscriptionFaultType)1 UnableToDestroySubscriptionFault (org.oasis_open.docs.wsn.bw_2.UnableToDestroySubscriptionFault)1