Package me.ehp246.aufjms.api.annotation
Annotation Interface EnableByJms
@Retention(RUNTIME)
@Target(TYPE)
@Import({AufJmsConfiguration.class,EnableByJmsRegistrar.class,EnableByJmsBeanFactory.class,ByJmsBeanFactory.class,DefaultInvocationDispatchBuilder.class})
public @interface EnableByJms
Enables
ByJms-annotated proxy interfaces scanning.- Since:
- 1.0
- Author:
- Lei Yang
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]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<?>[] 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:
- ""
-
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) 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:
- {}
-