Annotation Interface EnableByJms


Enables client-side capabilities of Auf JMS.

E.g., ByJms-annotated interfaces scanning and registration.

By default, the package and the sub-packages of the annotated class will be scanned.

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.
    Specifies the destination where the replies to out-going requests are expected to arrive.
    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) to create the beans.

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

      Does not support Spring property placeholder.

      Default:
      {}
    • requestReplyTo

      ByJms.To requestReplyTo
      Specifies the destination where the replies to out-going requests are expected to arrive.

      It turns on the support of request/reply pattern.

      Default is without request/reply support.

      See Also:
      Default:
      @me.ehp246.aufjms.api.annotation.ByJms.To("")