Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Does overridden executeFetch need to be synchronized

    I'm currently using smartgwt power 3.0 with gwt 2.3 on redhat linux. I'm extending sqldatasource on the server side in one of my classe. It will be intercepting the dsrequests that come from a table, calling
    Code:
    super.executeFetch(request)
    , adding a couple of properties to the response and returning the response. Does this method need to be synchronized? Do I have to worry about any race conditions.

    #2
    No need to declare it synchronized. DataSource instances are pooled server-side and only one thread is allowed into a DataSource at a time.

    Comment


      #3
      Originally posted by Isomorphic
      No need to declare it synchronized. DataSource instances are pooled server-side and only one thread is allowed into a DataSource at a time.
      Thank you.

      Comment

      Working...
      X