henning     2003/03/13 06:02:55

  Modified:    src/java/org/apache/turbine/services/uniqueid
                        TurbineUniqueIdService.java
  Log:
  Clean up the handling of the ServerData structure in the unique id service.
  
  Revision  Changes    Path
  1.8       +8 -3      
jakarta-turbine-2/src/java/org/apache/turbine/services/uniqueid/TurbineUniqueIdService.java
  
  Index: TurbineUniqueIdService.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/uniqueid/TurbineUniqueIdService.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TurbineUniqueIdService.java       13 Mar 2003 12:49:41 -0000      1.7
  +++ TurbineUniqueIdService.java       13 Mar 2003 14:02:55 -0000      1.8
  @@ -99,8 +99,13 @@
        */
       public void init()
       {
  -        ServerData = Turbine.getDefaultServerData();
  -
  +        // This might be a problem if the unique Id Service runs
  +        // before Turbine got its first request. In this case,
  +        // getDefaultServerData will return just a dummy value
  +        // which is the same for all instances of Turbine.
  +        //
  +        // @todo This needs definitely further working.
  +        String url = Turbine.getDefaultServerData().toString();
   
           MD5 md5 = new MD5();
           turbineId = Bytes.toString(md5.digest(url.toString().getBytes()));
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to