Annotation Interface EnableForJms.Inbound
- Enclosing class:
- EnableForJms
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionDestination of the incoming messages. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecifies whether the listener should be started automatically.Specifies the bean name of the InvocationListener type to receive either Invoked.Completed or Invoked.Failed invocations on this EnableForJms.Inbound.The bean name of the endpoint.Class<?>[]
-
Element Details
-
value
Destination of the incoming messages.
-
-
-
scan
Class<?>[] scan- Default:
- {}
-
concurrency
String concurrency- Default:
- "0"
-
name
String nameThe bean name of the endpoint. Must be unique if specified.Does not support Spring property placeholder.
- Default:
- ""
-
autoStartup
String autoStartupSpecifies whether the listener should be started automatically.Supports Spring property placeholder.
- Default:
- "true"
-
connectionFactory
String connectionFactory- Default:
- ""
-
invocationListener
String invocationListenerSpecifies the bean name of the InvocationListener type to receive either Invoked.Completed or Invoked.Failed invocations on this EnableForJms.Inbound.If the execution of a ForJmsType object on this EnableForJms.Inbound completes normally, the InvocationListener.OnCompleted.onCompleted(Completed) will be invoked.
If a RuntimeException happens from the bean, the Message will follow broker's dead-lettering process.
If the execution of a ForJmsType object on this EnableForJms.Inbound throws an exception, the InvocationListener.OnFailed.onFailed(Failed) will be invoked.
If the invocation of the bean completes without an exception, the Message will be acknowledged to the broker as a success.
InvocationListener.OnFailed can throw Exception in which case the message follows broker's dead-lettering process.
The listener bean is designed to support ForJmsType objects. It applies only after a matching ForJmsType class has been found. E.g., the bean will not be invoked for basic JMSException prior to Message.getJMSType() matching, i.e., UnknownTypeException.
Supports Spring property placeholder.
- Default:
- ""
-