Package me.ehp246.aufjms.api.annotation
Annotation Interface EnableForJms
@Documented
@Retention(RUNTIME)
@Target(TYPE)
@Import({AufJmsConfiguration.class,InboundEndpointRegistrar.class,InboundEndpointFactory.class,InboundEndpointListenerConfigurer.class,ExecutorConfiguration.class,DefaultInvocableBinder.class})
public @interface EnableForJms
- Since:
- 1.0
- Author:
- Lei Yang
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
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[] value
-
-
-
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 no bean name is specified, i.e., 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"
-