Annotation Interface EnableByJms
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 ElementsModifier and TypeOptional ElementDescriptionSpecifies a value for MessageProducer.setDeliveryDelay(long) that applies to all out-bound messages from the application.String[]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<?>[] scanSpecifies the packages to scan for ByJms interfaces.By default, all sub-packages under EnableByJms-annotated class are scanned.
- Default:
- {}
-
ttl
String ttlSpecifies 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 delaySpecifies 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[] dispatchFnsSpecifies 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 at0. E.g.,jmsDispatchFn-0,jmsDispatchFn-1, and etc.Does not support Spring property placeholder.
- Default:
- {}
-
requestReplyTo
ByJms.To requestReplyToSpecifies 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("")
-