Hi, I am cross posting this to apps mailing list which is probably a better place to discuss it.
On Mon, 8 Jul 2002 21:28, Iwasa Kazmi wrote: > Hello, > > I'm a user of jakarta-james. > The latest james uses avalon-cornerstone for storing mail objects, > but it is of no use. The problem appears after the james restart. > Sometimes james cannot obtain list of mail objects stored before. > (This bug has already been reported in > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8839 ) > > It is a problem caused by a behavior of avalon-cornerstone. > > The file stored by > File_Persistent_Stream_Repository or File_Persistent_Object_Repository > have a name like: > > <key>.<RepositoryName>.<ObjectTypeName> > > <RepositoryName> is given by RepositoryManager.getName(), and have > a serial number. > > After James restarts, <RepositoryName> which is bound to a directory > may differ because new serial number may be given. > (It seems that James creates FileRepository objects when it is needed.) > > Also, AbstractFileRepository use a filter string for listing the > directory. Currently, AbstractFileRepository.m_extension which contains > <RepositoryName> is used as a filter string. Thus, it may drop files > which already exist. > > Is numbering in RepositoryManager.getName() needed ? The problem is that if you have multiple repositories then you will have repositories that collide. However the numbering scheme seems stupid. I cant see how FileRepository and friends are actually useful?? Can anyone else describe how the repository stuff is used. Is it used at all? Seems terribly broken to me. Enough so that I would not mind deprecating it and recomending people not use it. Or have I missed something? > If the numbering > is needed, the filter string should not contain the serial number part. > Otherwise, the number should be decided relating to the directory's path. right. We'll see what everyone says. -- Cheers, Peter Donald --------------------------------------------------- "Therefore it can be said that victorious warriors win first, and then go to battle, while defeated warriors go to battle first, and then seek to win." - Sun Tzu, the Art Of War --------------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>