Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-slide Wiki" for 
change notification.

The following page has been changed by DEFord:
http://wiki.apache.org/jakarta-slide/IntroFullCustomStore

------------------------------------------------------------------------------
  
'''[http://jakarta.apache.org/slide/javadoc/org/apache/slide/store/LockStore.html
 LockStore]'''
     Locks are stored as 
[http://jakarta.apache.org/slide/javadoc/org/apache/slide/lock/NodeLock.html 
NodeLock] objects. A lock is set by a specific user on a specific resource for 
a specific action.
  
+ 
'''[http://jakarta.apache.org/slide/javadoc/org/apache/slide/store/SequenceStore.html
 SequenceStore]'''
+    This is the ''optional'' interface that can be implemented. A 
SequenceStore can be used to generate a series of unique numbers. If you are 
not sure if you need this then ''you probably don't''. 
+ 
  == Implementing a reasonable XAResource ==
  
  For all store implementations it is mandatory to implement the JTA interface 
[http://java.sun.com/j2ee/1.4/docs/api/javax/transaction/xa/XAResource.html 
XAResource]. This is necessary to take part in transaction spanned by every 
WebDAV request done to Slide. If this is a good idea or not is not the subject 
of this small paragraph. Anyway, implementing a reasonable XAResource from 
scratch is a very troublesome and tedious thing to do, even if you have already 
implemented one before. I'd rather propose to use the 
[http://jakarta.apache.org/commons/sandbox/transaction/apidocs/org/apache/commons/transaction/util/xa/AbstractXAResource.html
 AbstractXAResource] from the 
[http://jakarta.apache.org/commons/sandbox/transaction/ commons transaction] 
component. This has been done in recent versions of the database stores. The 
great transactional memory stores do this indirectly by using the transactional 
maps from the same component. Those maps use the the ''AbstractXAResource'' as 
wel
 l.

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

Reply via email to