[JBoss-dev] [JBossCache] - Re: Concurrency Question

2005-03-23 Thread abitha
I am implementing a queue that is part of the tree cache. Each request will 
come in and pick the next available work from the queue, and remove that work 
item from the queue. The queue is shared across the cluster via the tree cache. 
If the transaction locking is only limited to the tree on which the txn (in 
this case, read and remove) occurs, then will I not have a problem with 
multiple requests on different servers picking up the same item (when one 
server has picked an item, and then removes it, but another server comes in 
before the txn is completed and the remove is replicated)? Do you have any 
suggestions on how to handle this scenario?

Thanks, Abitha.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3871379#3871379

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871379


---
This SF.net email is sponsored by Microsoft Mobile  Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r)  Windows Mobile(tm) platforms, applications  content.  Register
by 3/29  save $300 http://ads.osdn.com/?ad_id=6883alloc_id=15149op=click
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBossCache] - Re: Concurrency Question

2005-03-23 Thread [EMAIL PROTECTED]
If your txn spans across multiple read and remove, then you should be ok. The 
worst case is when it commits, it will fail on the other node (or timeout) and 
the work will be rolled back. 

Remember cache is used for read mostly operations. So in theory, this scenario 
should not occur that often.

-Ben


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3871398#3871398

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871398


---
This SF.net email is sponsored by Microsoft Mobile  Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r)  Windows Mobile(tm) platforms, applications  content.  Register
by 3/29  save $300 http://ads.osdn.com/?ad_id=6883alloc_id=15149op=click
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBossCache] - Re: Concurrency Question

2005-03-22 Thread [EMAIL PROTECTED]
The isolation level only applies to the data (or node) inside the same cache 
instance.

-Ben

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3871206#3871206

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871206


---
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882alloc_id=15148op=click
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development