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

Remove workaround for race on datasource lookup

    XMLWordPrintable

Details

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

    Description

                  // [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);
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: