You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by 陶 京瑞 <ta...@hotmail.com> on 2004/08/20 09:34:07 UTC
concurrency problem
hi,
I hold a question for a long time. I wonder if there are several persons
use the same username login the slide, and do something(such as
put,get,lock and unlock) in the same time. can slide handle this issue? if
so how many persons can use the same username login the slide concurrently?
I think someone may have met the same questions before, who can help
me?thank you.
Jingrui
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Java file manipulaiton library for file store implementation
Posted by Andreas Probst <an...@gmx.net>.
Hi Kranga,
the copy and move stuff is already implemented in Apache Ant.
However, when I tried to use it, I realized there is no simple
copy(source, target) method. You need to work with a whole bunch
of their classes. Maybe it's not as complicated as one could
think from the first sight...
Regards,
Andreas
On 20 Aug 2004 at 11:26, kranga wrote:
> I'm trying to implement a custom file system based content store. The jdk
> File class is pathetic when it comes to support for file manipulation. I'm
> particularly interested in any library you know of that provides the
> following:
>
> - Ability to move files and directories across file system using native
> calls instead of going recursing through the directory and moving file by
> file
> - Ability to delete a directory that is not empty.
>
> I need this to work on both windows and linux file systems. Does anyone know
> of such a java library?
>
> Thanks
> K
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Java file manipulaiton library for file store implementation
Posted by kranga <kr...@k2d2.org>.
I'm trying to implement a custom file system based content store. The jdk
File class is pathetic when it comes to support for file manipulation. I'm
particularly interested in any library you know of that provides the
following:
- Ability to move files and directories across file system using native
calls instead of going recursing through the directory and moving file by
file
- Ability to delete a directory that is not empty.
I need this to work on both windows and linux file systems. Does anyone know
of such a java library?
Thanks
K
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: concurrency problem
Posted by kranga <kr...@k2d2.org>.
I have been able to move a file while locking it - its not fool proof. The
lock seems to succeed even after the file is moved. I reproduced the error
by putting tomcat in debug, waiting to get upto a point in the move
operation and then executing a lock on another thread through the command
line client.
----- Original Message -----
From: "James Mason" <ma...@apache.org>
To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
Sent: Friday, August 20, 2004 10:08 AM
Subject: Re: concurrency problem
> This should be no problem. A lock is identified by a lock token rather
> than by the username of the user who has a resource locked. For all
> other methods the username should only be used to determine access rights.
>
> If you notice any odd behavior, please post here, but as far as I know
> there should be no difference between 100 users with the same username
> and 100 users with differerent usernames.
>
> -James
>
> 陶 京瑞 wrote:
> > hi,
> >
> > I hold a question for a long time. I wonder if there are several
> > persons use the same username login the slide, and do something(such as
> > put,get,lock and unlock) in the same time. can slide handle this issue?
> > if so how many persons can use the same username login the slide
> > concurrently?
> >
> > I think someone may have met the same questions before, who can help
> > me?thank you.
> >
> > Jingrui
> >
> > _________________________________________________________________
> > 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: slide-user-help@jakarta.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: concurrency problem
Posted by James Mason <ma...@apache.org>.
This should be no problem. A lock is identified by a lock token rather
than by the username of the user who has a resource locked. For all
other methods the username should only be used to determine access rights.
If you notice any odd behavior, please post here, but as far as I know
there should be no difference between 100 users with the same username
and 100 users with differerent usernames.
-James
陶 京瑞 wrote:
> hi,
>
> I hold a question for a long time. I wonder if there are several
> persons use the same username login the slide, and do something(such as
> put,get,lock and unlock) in the same time. can slide handle this issue?
> if so how many persons can use the same username login the slide
> concurrently?
>
> I think someone may have met the same questions before, who can help
> me?thank you.
>
> Jingrui
>
> _________________________________________________________________
> 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org