This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Thread name when using ConcurrencyInterceptor

Jul 11th, 2008, 07:12 PM

I'm seeing that the thread name when using @Concurrency, when logged from within the @MessageEndpoint's @Handler, sometimes is set to the endpoint name + <integer>, while other times it's set to "message bus=<integer>".

The default task executor that is created when using @Concurrency has a CallerRunsPolicy (for throttling input tasks). Therefore, when there are no non-busy threads in the pool, the calling thread (message-bus) invokes the handler directly.