You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DefaultMessageListenerContainer and its base class AbstractJmsListeningContainer use synchronization for lifecycle and shared connection management. This can be replaced with ReentrantLock in order to improve virtual thread compatibility during the startup and shutdown phase. The message receive step is executing outside of a lock, so general virtual thread compatibility is given already.
Since DefaultMessageListenerContainer internally creates a SimpleAsyncTaskExecutor by default, an explicit virtual thread setup option it is also worth considering, e.g. a setVirtualThreads flag to simply pass through to the internal SimpleAsyncTaskExecutor instance.
The text was updated successfully, but these errors were encountered:
DefaultMessageListenerContainer
and its base classAbstractJmsListeningContainer
use synchronization for lifecycle and shared connection management. This can be replaced withReentrantLock
in order to improve virtual thread compatibility during the startup and shutdown phase. The message receive step is executing outside of a lock, so general virtual thread compatibility is given already.Since
DefaultMessageListenerContainer
internally creates aSimpleAsyncTaskExecutor
by default, an explicit virtual thread setup option it is also worth considering, e.g. asetVirtualThreads
flag to simply pass through to the internalSimpleAsyncTaskExecutor
instance.The text was updated successfully, but these errors were encountered: