Re: Is a node still locked after session.move()?

2010-09-29 Thread Dominik Klaholt
Hi, it's not a bug, it's my mistake. I had somehow managed to mess up whatever memory the Jackrabbit-JUnit-Tests use (nodes with same name...). Sorry for bothering. Dominik Am 29.09.2010 10:18, schrieb Stefan Guggisberg: hi dominik, On Mon, Sep 27, 2010 at 7:42 PM, Dominik Klaholt wrote:

Re: Batch Import from mysql?

2010-09-29 Thread Rakesh Vidyadharan
Using the workspace importXML method, I need about 2.5G of heap to restore from a 140Mb system export file (runs in a few minutes). Importing the same data directly from MS Sql Server takes about 30 minutes but runs comfortably with 512Mb heap (may run with less, but I have not tested). Note t

Re: Batch Import from mysql?

2010-09-29 Thread sam lee
I initially thought it'd be mysqldump to xml. But, Node structure in JCR that I need is radically different from mysql tables. So, I think I need to spit out xml myself. And doing so would be very similar to manually creating Nodes. Is there a way to create document/system view xml without first w

Re: Batch Import from mysql?

2010-09-29 Thread Justin Edelson
I think it depends upon how you do it. Using the import methods on the Workspace is workspace write, so it shouldn't consume much memory. The import methods on the Session could consume a significant amount of heap, depending upon the size of your import. However, Session.importXML / Session.getIm

Re: Batch Import from mysql?

2010-09-29 Thread sam lee
Ah, I see. And, I think it's too much work to output XML that I want from MySQL. I'll look into partitioning. Thank you. Sam On Wed, Sep 29, 2010 at 10:10 AM, Rakesh Vidyadharan wrote: > In my experience importing from the system view XML requires huge amounts > of memory. If the process requir

Re: Batch Import from mysql?

2010-09-29 Thread Rakesh Vidyadharan
In my experience importing from the system view XML requires huge amounts of memory. If the process requires hours to import from MySQL, I would think that heap space constraints would limit the import from XML option. To the OP, make sure that your node structure is partitioned. If not, write

Re: Batch Import from mysql?

2010-09-29 Thread Justin Edelson
It is defined in Section 7 of JSR 283 : http://www.day.com/specs/jcr/2.0/7_Export.html On 9/29/10 9:19 AM, sam lee wrote: > Hey, > > What is "system view XML" ? > My Google hadouken failed. > > thanks. > sam > > On Tue, Sep 28, 2010 at 9:18 PM, Justin Edelson

Re: Batch Import from mysql?

2010-09-29 Thread sam lee
Hey, What is "system view XML" ? My Google hadouken failed. thanks. sam On Tue, Sep 28, 2010 at 9:18 PM, Justin Edelson wrote: > You can generate a system view XML file from your MySQL data and then > import that in one shot. > > Justin > > On 9/28/10 9:14 PM, sam lee wrote: > > Hey, > > > > I

Spring for JCR

2010-09-29 Thread sriraj paul
Hi, I tried spring for JCR as given in http://www.springbyexample.org/examples/spring-by-example-jcr-module.html. This is for JSR 170. In spring module site(https://springmodules.dev.java.net/ ) also they have given it as - Support for JSR-170 (Java Content Repository) . I tried it with CRX 2.

Re: In deph Jackrabbit clustering question

2010-09-29 Thread William Ribeiro
Thanks for the tips Alexander. I'll post my question on the dev list. Cheers. On Wed, Sep 29, 2010 at 12:48 PM, Alexander Klimetschek wrote: > On Wed, Sep 29, 2010 at 10:32, William Ribeiro > wrote: > > Anyway ... I can't understand how this mechanism works. I need to find > the > > method tha

Re: In deph Jackrabbit clustering question

2010-09-29 Thread Alexander Klimetschek
On Wed, Sep 29, 2010 at 10:32, William Ribeiro wrote: > Anyway ... I can't understand how this mechanism works. I need to find the > method that invokes the FileSystem  for persisting the new items found in > the Journal's records. The FileSystem is only used to store some configuration files now

Re: Lucene consistency in clustered environment

2010-09-29 Thread Ian Boston
On 29 Sep 2010, at 11:33, Dennis van der Laan wrote: > From your reply I > understand that this should not be the case with Lucene, is it? Every JournalRecord should have been replayed on every machine (at some time later if the JVM was down). That *should* ensure that all documents are indexe

Re: Lucene consistency in clustered environment

2010-09-29 Thread Dennis van der Laan
Thanks for the reply. We did setup all machines as a Jackrabbit cluster from the start. We don't have a complete journal starting from the first operation ever done on the repository. One node is running the janitor process, so if all current nodes are in sync, the old journal entries are removed

Re: Session.getPendingChanges ??

2010-09-29 Thread Stefan Guggisberg
On Tue, Sep 28, 2010 at 8:16 PM, Christian Wurbs wrote: > Hi everybody, > > > > Is there a possibility to get a list of pending changes from the Session? no. what's your use case? you can check an Item whether whether it's modified/new, see [0], [1]. cheers stefan [0] http://www.day.com/maven

In deph Jackrabbit clustering question

2010-09-29 Thread William Ribeiro
Hello everybody, I got a question about Clustering Jackrabbit (v 1.6.2). I'm trying to figure out how the clustering schematics works. I got a custom in-memory database that I integrated with Jackrabbit: I already got custom PersistenceManager and FileSystem implementations plus some other require

Re: Is a node still locked after session.move()?

2010-09-29 Thread Stefan Guggisberg
hi dominik, On Mon, Sep 27, 2010 at 7:42 PM, Dominik Klaholt wrote: > Hello, > > I have written a test-method that deals with moving a locked node and can be > executed within XATest.java ( > http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core