Package me.ehp246.aufjms.api.annotation
Annotation Interface EnableForJms
@Documented
@Retention(RUNTIME)
@Target(TYPE)
@Import({AufJmsConfiguration.class,AnnotatedInboundEndpointRegistrar.class,InboundEndpointFactory.class,InboundEndpointListenerConfigurer.class,ExecutorConfiguration.class,DefaultInvocableBinder.class})
public @interface EnableForJms
Enables the server-side capabilities of Auf JMS.
Mostly to declare EnableForJms.Inbound endpoints and scanning and registration of ForJmsType classes for the endpoints.
- Since:
- 1.0
- Author:
- Lei Yang
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionSpecifies the destinations to listen for incoming messages and their configurations. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecifies the bean name of MsgConsumer type to receive any message that no matching Invocable can be found for its Message.getJMSType().
-
Element Details
-
value
EnableForJms.Inbound[] valueSpecifies the destinations to listen for incoming messages and their configurations.
-
-
-
defaultConsumer
String defaultConsumerSpecifies the bean name of MsgConsumer type to receive any message that no matching Invocable can be found for its Message.getJMSType().The default value specifies a no-operation bean that logs the un-matched message by Logger.atDebug(). This means un-matched messages are to be expected and acknowledged to the broker without triggering the dead-lettering process.
If the value is an empty string, an un-matched message will result an UnknownTypeException thus trigger the dead-lettering process.
The setting applies to all InboundEndpoint's.
Supports Spring property placeholder.
- Default:
- "44fc3968-7eba-47a3-a7b4-54e2b365d027"
-