Thursday, November 29, 2012

Spring bean threadsafety

Recently working on multi-thread safety issues, and read a interesting article regarding spring bean and thread safe. http://tarunsapra.wordpress.com/2011/08/21/spring-singleton-request-session-beans-and-thread-safety/ Please be aware one more thing, spring singleton is not a true singleton, is one instance per application context. So it is possible there are multiple instances inside JVM.

2 comments:

  1. I'm amazed, I have to admit. Seldom do I come across a blog that's both equally educative and engaging, and let me tell you, you've hit the nail on the head. The problem is an issue that too few people are speaking intelligently about. Now i'm very happy that I found this in my search for something regarding this.

    ReplyDelete
  2. Hi! This post could not be written any better! Reading this post reminds me of my good old room mate! He always kept chatting about this. I will forward this write-up to him. Pretty sure he will have a good read. Many thanks for sharing!

    ReplyDelete