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