Class MetadataProducerSessionFactory

  • All Implemented Interfaces:
    ComponentLifecycle, ProducerSessionFactory

    public class MetadataProducerSessionFactory
    extends ProducerSessionFactoryImpl
    Implementation of ProducerSessionFactory that creates a new session/producer based on message size.

    This implementaton refreshes the session based whether an item of metadata evaluates to 'true'

    In the adapter configuration file this class is aliased as jms-metadata-producer-session which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • MetadataProducerSessionFactory

        public MetadataProducerSessionFactory()
      • MetadataProducerSessionFactory

        public MetadataProducerSessionFactory​(java.lang.String key)
    • Method Detail

      • getMetadataKey

        public java.lang.String getMetadataKey()
      • setMetadataKey

        public void setMetadataKey​(java.lang.String key)
        Set the metadata key which will cause a session to be refreshed.
        Parameters:
        key - the metadata key, defaults to 'newJmsSession'