Class RetryOnceStandaloneProducer

  • All Implemented Interfaces:
    AdaptrisComponent, AdaptrisMessageSender, ComponentLifecycle, ComponentLifecycleExtension, ConnectedService, MessageEventGenerator, Service, StateManagedComponent

    @ComponentProfile(summary="Produce a message where as part of a service chain; retrying once on failure",
                      tag="service")
    public class RetryOnceStandaloneProducer
    extends StandaloneProducer
    An implementation of StandaloneProducer that on encountering an error producing a message, waits for a configurable period, re-initialises the underlying components, then tries to produce once one more.

    As some internal components have relationships that are persistent across their normal lifecycle, this class additionally marshals each connection and producer implementation to XML and back again prior to initialisation.

    In the adapter configuration file this class is aliased as retry-once-standalone-producer which is the preferred alternative to the fully qualified classname when building your configuration.