Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2573

Remove workaround for race on datasource lookup

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major Major
    • No Release
    • None
    • JAXR
    • None

                  // [TODO] AS7-2302 Potential race condition on DataSource lookup
                  long timeout = 2000;
                  while (datasource == null && timeout > 0) {
                      try {
                          datasource = (DataSource) namingStore.lookup(new CompositeName(lookup.substring(5)));
                      } catch (Exception ex) {
                          Thread.sleep(200);
                          timeout -= 200;
                      }
                  }
                  if (datasource == null)
                      throw new IllegalStateException("Cannot obtain data source: " + lookup);
      

              kstam@redhat.com Kurt Stam (Inactive)
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: