[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - bean synchronization question
do-not-reply at jboss.com
Mon Jul 31 09:50:36 EDT 2006
I know that the jdk implements synchronization is a recursive way, but I need to clear up a burning question in my mind. Lets say I have a bean with a synchronized public getData() method. This method calls a private method called getDataFromDB() that uses the standard DataSource pattern to get data from a db to populate instance variables. Since I synchronized getData(), do I also need to synchronize getDataFromDB()? The scope of this bean is "request" when called from a jsp. Thanks and sorry for the dumb question.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961867#3961867
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961867
More information about the jboss-user