0 Replies Latest reply on Jul 31, 2006 9:50 AM by bezdomny

    bean synchronization question

    bezdomny

      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.

      B