jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "QuestionsAndAnswers" by ThomasMueller
Date Wed, 09 Dec 2009 08:49:46 GMT
Dear Wiki user,

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

The "QuestionsAndAnswers" page has been changed by ThomasMueller.
http://wiki.apache.org/jackrabbit/QuestionsAndAnswers?action=diff&rev1=49&rev2=50

--------------------------------------------------

  
  A: For JCR 1.0, use string, or multiply by 100 and use long. For JCR 2.0, use decimal. Using
double is not recommended, because of rounding problems : [[http://www.javaranch.com/journal/2003/07/MoneyInJava.html|Java
Ranch]] [[http://www.javapractices.com/topic/TopicAction.do?Id=13|Java Practices]].
  
+ === Concurrency ===
+ 
+ Jackrabbit does not support multiple threads concurrently reading from or writing to the
same session. Each session should only ever be accessed from one thread.
+ 
+ Multiple session however can read from the same repository concurrently. 
+ 
+ Also, multiple session can write to the repository concurrently, given that they write to
different nodes. Internally, Jackrabbit stores the list of child nodes at the node itself,
that means you can't concurrently add, move, or delete child nodes of the same node.
+ 

Mime
View raw message