commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Panchenko <alex+n...@olmisoft.com>
Subject Re: [fileupload] DefaultFileItem.getUniqueId and multiple class loaders
Date Wed, 28 Sep 2005 06:02:15 GMT
Mike S wrote:

> Are there any suggestions as to the best way to modify the getUniqueId
> method to return a unique ID across class loaders? We are thinking along the
> lines of injecting a random number to concatenate with the static counter in
> the DefaultFileItem, (or grabbing the start timestamp off the jvm) to create
> unique names.

return new java.rmi.server.UID().toString().replace(':','-');

-- 
Best regards,
 Alexey                            mailto:alex+news@olmisoft.com


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message