Annotation Interface EnableByJms


Enables ByJms-annotated proxy interfaces scanning.
Since:
1.0
Author:
Lei Yang
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies a value for MessageProducer.setDeliveryDelay(long) that applies to all out-bound messages from the application.
    Specifies whether to register JmsDispatchFn beans backed by a Connection retrieved from the named connection factories.
    Class<?>[]
    Specifies the packages to scan for ByJms interfaces.
    Specifies a value for MessageProducer.setTimeToLive(long) that applies to all out-bound messages from the application.
  • Element Details

    • scan

      Class<?>[] scan
      Specifies the packages to scan for ByJms interfaces.

      By default, all sub-packages under EnableByJms-annotated class are scanned.

      Default:
      {}
    • ttl

      String ttl
      Specifies a value for MessageProducer.setTimeToLive(long) that applies to all out-bound messages from the application.

      The value can be overridden by higher-priority sources from ByJms proxies. The default is no TTL.

      Supports Spring property placeholder.

      Default:
      ""
    • delay

      String delay
      Specifies a value for MessageProducer.setDeliveryDelay(long) that applies to all out-bound messages from the application.

      The value can be overridden by higher-priority sources from ByJms proxies. The default is no delay.

      Supports Spring property placeholder.

      Default:
      ""
    • dispatchFns

      String[] dispatchFns
      Specifies whether to register JmsDispatchFn beans backed by a Connection retrieved from the named connection factories.

      The values are passed to ConnectionFactoryProvider.get(String) as connection name to create the bean.

      The bean name is of the form JmsDistpchFn-${index} where the index starts at 0. E.g., JmsDispatchFn-0, JmsDispatchFn-1, and etc.

      Does not support Spring property placeholder.

      Default:
      {}