Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 70836 invoked from network); 1 Jun 2007 14:03:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2007 14:03:31 -0000 Received: (qmail 96980 invoked by uid 500); 1 Jun 2007 14:03:34 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 96966 invoked by uid 500); 1 Jun 2007 14:03:34 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 96956 invoked by uid 99); 1 Jun 2007 14:03:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 07:03:33 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [201.56.34.23] (HELO barrinha.datasul.com.br) (201.56.34.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 07:03:27 -0700 Received: by barrinha.datasul.com.br (Postfix, from userid 106) id BF68262894E; Fri, 1 Jun 2007 11:03:04 -0300 (BRT) Received: from sancho.datasul.com.br (sancho.datasul.net [10.71.0.6]) by barrinha.datasul.com.br (Postfix) with ESMTP id 57306615CF4 for ; Fri, 1 Jun 2007 11:03:04 -0300 (BRT) Received: from [10.80.2.196] ([10.80.2.196]) by sancho.datasul.com.br with Microsoft SMTPSVC(6.0.3790.1830); Fri, 1 Jun 2007 11:03:04 -0300 Message-ID: <4660271F.4080100@datasul.com.br> Date: Fri, 01 Jun 2007 11:03:11 -0300 From: Glaucio Scheibel User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Blob in another directory References: <465C836F.2040601@datasul.com.br> <465F0DE2.7030909@datasul.com.br> <90a8d1c00706010301g697a0d1i82057093493de07a@mail.gmail.com> In-Reply-To: <90a8d1c00706010301g697a0d1i82057093493de07a@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Jun 2007 14:03:04.0412 (UTC) FILETIME=[92B8F9C0:01C7A455] X-Virus-Checked: Checked by ClamAV on apache.org Hi Stefan, At this time, I am only doing some tests for big repositories and one of the requisites is distributed workspaces. I need to store data in different hard drives, if I use internal blob's, it works. I still not sure which is better: internal or external blob ;-) Glaucio Stefan Guggisberg wrote: > hi glaucio, > > On 5/31/07, Glaucio Scheibel wrote: >> Hi again, >> >> I look at the source codes and I found the cause: >> >> In DatabasePersistenceManager, if the externalBlob property is true, it >> creates a new LocalFileSystem object using the context.getHomeDir >> instead using the root path of context.getFileSystem. There is another >> problem: the root path of a FileSystem is not readable, so I had to >> change this property visibility to create the FileSystem with the >> correct path. >> This is a real problem for me because I need to create each workspace in >> a separate paths. Till now the only solution is setting the externalBlob >> property to false. > > you could e.g. override the init(PMContext) method in your > DatabasePersistenceManager derived class as follows: > > public void init(PMContext context) throws Exception { > super.init(context); > > if (externalBLOBs) { > /** > * store BLOBs in a sub directory of the workspace's > * virtual file system > */ > BasedFileSystem blobFS = new > BasedFileSystem(context.getFileSystem(), "blobs"); > blobFS.init(); > this.blobFS = blobFS; > blobStore = new FileSystemBLOBStore(blobFS); > } > } > > however, i have difficulties understanding your requirement. could you > please > elaborate why you need to locate the workspace home directories outside > the repository home dir? > > cheers > stefan > >> >> Thanks >> Glaucio >> >> >> Glaucio Scheibel wrote: >> > Hi All, >> > >> > I created a workspace in another directory (outside the repository >> > directory). >> > The index and data files are correct stored in this directory, but the >> > blob files still been stored inside the repository diretory. >> > Jackrabbit create a directory with workspace name below the repository >> > dir and put the workspace.xml file and the blob diretory there. >> > I allready look at the PersistentManager but doesn't have any property >> > to configure the directory of blob files. >> > Is there a way to specify the directory of blob files? >> > >> > Thanks >> > Glaucio >> > >> > >> >