Changeset 29874

Show
Ignore:
Timestamp:
02/02/08 18:10:18 (10 months ago)
Author:
fguillaume
Message:

Compatibility with Nuxeo 5.1.3, which has a problem fetching non-local diretories.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.project.sample/trunk/src/main/java/org/nuxeo/project/sample/BookISBNEventListener.java

    r28037 r29874  
    3434        DirectoryService dirService; 
    3535        try { 
    36             dirService = Framework.getService(DirectoryService.class); 
     36            // This should work but doesn't in 5.1.3 
     37            // dirService = Framework.getService(DirectoryService.class); 
     38            dirService = Framework.getLocalService(DirectoryService.class); 
    3739        } catch (Exception e) { 
    3840            throw new ClientException(e); 
  • org.nuxeo.project.sample/trunk/src/main/java/org/nuxeo/project/sample/BookManagerBean.java

    r28088 r29874  
    183183        DirectoryService dirService; 
    184184        try { 
    185             dirService = Framework.getService(DirectoryService.class); 
     185            // This should work but doesn't in 5.1.3 
     186            // dirService = Framework.getService(DirectoryService.class); 
     187            dirService = Framework.getLocalService(DirectoryService.class); 
    186188        } catch (Exception e) { 
    187189            throw new ClientException(e); 
     
    360362            DirectoryService dirService; 
    361363            try { 
    362                 dirService = Framework.getService(DirectoryService.class); 
     364                // This should work but doesn't in 5.1.3 
     365                // dirService = Framework.getService(DirectoryService.class); 
     366                dirService = Framework.getLocalService(DirectoryService.class); 
    363367            } catch (Exception e) { 
    364368                throw new ClientException(e);