Search in sources :

Example 1 with RedeliveryQueueImpl

use of org.apache.cxf.ws.rm.soap.RedeliveryQueueImpl in project cxf by apache.

the class RMManager method initialise.

@PostConstruct
void initialise() {
    if (configuration == null) {
        getConfiguration().setExponentialBackoff(true);
    }
    DeliveryAssurance da = configuration.getDeliveryAssurance();
    if (da == null) {
        configuration.setDeliveryAssurance(DeliveryAssurance.AT_LEAST_ONCE);
    }
    if (null == sourcePolicy) {
        setSourcePolicy(null);
    }
    if (null == destinationPolicy) {
        DestinationPolicyType dp = new DestinationPolicyType();
        dp.setAcksPolicy(new AcksPolicyType());
        setDestinationPolicy(dp);
    }
    if (null == retransmissionQueue) {
        retransmissionQueue = new RetransmissionQueueImpl(this);
    }
    if (null == redeliveryQueue) {
        redeliveryQueue = new RedeliveryQueueImpl(this);
    }
    if (null == idGenerator) {
        idGenerator = new DefaultSequenceIdentifierGenerator();
    }
    if (null != bus) {
        managedManager = new ManagedRMManager(this);
        instrumentationManager = bus.getExtension(InstrumentationManager.class);
        if (instrumentationManager != null) {
            try {
                instrumentationManager.register(managedManager);
            } catch (JMException jmex) {
                LOG.log(Level.WARNING, "Registering ManagedRMManager failed.", jmex);
            }
        }
    }
}
Also used : AcksPolicyType(org.apache.cxf.ws.rm.manager.AcksPolicyType) RedeliveryQueueImpl(org.apache.cxf.ws.rm.soap.RedeliveryQueueImpl) RetransmissionQueueImpl(org.apache.cxf.ws.rm.soap.RetransmissionQueueImpl) DeliveryAssurance(org.apache.cxf.ws.rm.RMConfiguration.DeliveryAssurance) JMException(javax.management.JMException) DestinationPolicyType(org.apache.cxf.ws.rm.manager.DestinationPolicyType) InstrumentationManager(org.apache.cxf.management.InstrumentationManager) PostConstruct(javax.annotation.PostConstruct)

Aggregations

PostConstruct (javax.annotation.PostConstruct)1 JMException (javax.management.JMException)1 InstrumentationManager (org.apache.cxf.management.InstrumentationManager)1 DeliveryAssurance (org.apache.cxf.ws.rm.RMConfiguration.DeliveryAssurance)1 AcksPolicyType (org.apache.cxf.ws.rm.manager.AcksPolicyType)1 DestinationPolicyType (org.apache.cxf.ws.rm.manager.DestinationPolicyType)1 RedeliveryQueueImpl (org.apache.cxf.ws.rm.soap.RedeliveryQueueImpl)1 RetransmissionQueueImpl (org.apache.cxf.ws.rm.soap.RetransmissionQueueImpl)1