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.Not implemented.Specifies the name to pass to ConnectionFactoryProvider to eventually retrieve a Connection.Specifies the bean name of ErrorHandler type to receive any uncaught exceptions during execution of a message.Specifies the bean name of ExceptionListener type to receive JMSException during execution of a message.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<?>[]Registers the specified ForJmsType-annotated classes individually.Class<?>[]Specifies the packages to scan for ForJmsType classes for this endpoint.intDefines the session mode for the endpoint.
-
Element Details
-
value
Destination of the incoming messages.
-
-
-
scan
Class<?>[] scanSpecifies the packages to scan for ForJmsType classes for this endpoint.By default, the package and the sub-packages of the annotated class will be scanned.
- Default:
- {}
-
register
Class<?>[] registerRegisters the specified ForJmsType-annotated classes individually.- Default:
- {}
-
concurrency
String concurrencyNot implemented.- Default:
- "0"
-
name
String nameThe bean name of the endpoint. Must be unique if specified.The default name would be in the form of
'inboundEndpoint-${n}'where'n'is the index from EnableForJms.value() starting at0.Does not support Spring property placeholder.
- Default:
- ""
-
autoStartup
String autoStartupSpecifies whether the listener should be started automatically.Supports Spring property placeholder.
- Default:
- "true"
-
sessionMode
int sessionModeDefines the session mode for the endpoint.Defaults to Session.SESSION_TRANSACTED.
- See Also:
-
Connection.createSession(int)
- Default:
- 0
-
connectionFactory
String connectionFactorySpecifies the name to pass to ConnectionFactoryProvider to eventually retrieve a Connection.- 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 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.
If a RuntimeException happens from the bean during execution, the Message will follow broker's dead-lettering process.
Supports Spring property placeholder.
- Default:
- ""
-
errorHandler
String errorHandlerSpecifies the bean name of ErrorHandler type to receive any uncaught exceptions during execution of a message.Supports Spring property placeholder.
- See Also:
-
AbstractMessageListenerContainer.setErrorHandler(ErrorHandler)
- Default:
- ""
-
exceptionListener
String exceptionListenerSpecifies the bean name of ExceptionListener type to receive JMSException during execution of a message.Supports Spring property placeholder.
- See Also:
-
AbstractMessageListenerContainer.setExceptionListener(ExceptionListener)
- Default:
- ""
-