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.

Question regarding JmsMessageDrivenEndpoint

Nov 7th, 2010, 12:54 PM

In a running standalone app, when we stop the JmsMessageDrivenEndpoint, what happens to all the live threads that are active in the app and are processing several messages in respective transactions?
I am running this endpoint with session="transacted" mode.

Will the running threads commit or rollback be handled appropriately, even though the JmsMessageDrivenEndpoint is stopped?

Note: Before shutting the app down, i am executing stop on JmsMessageDrivenEndpoint and then waiting for few secs to write some data about messages processed to the log.
I also registered the shutdown hook.
Thanks
sri