Hi Justin, Thanks for your reply. I actually wanted to create the workspace manually and not programmatically.
After spending some time searching on the internet, I figured out the manual work. http://jackrabbit.apache.org/frequently-asked-questions.html Under the question: "How do I create new workspaces in Jackrabbit? " So I copied the existing settings, just changed the <Workspace name="test"> and it worked! Regards, Meenakshi On Fri, Oct 1, 2010 at 4:38 PM, Justin Edelson <[email protected]>wrote: > Did you call Workspace.createWorkspace("test2") ? > > > > On 10/1/10 9:58 AM, Meenakshi Khatri wrote: > > Hi everyone, > > > > I am trying to use jackrabbit's feature of using multiple workspaces. Of > > what I have understood so far, Creating a new workspace should be > including > > a new entry in the repository.xml and creating additional workspace.xml > > inside workspaces folder. [So I also got workspaces / test2 / > workspace.xml > > file ] > > > > I got one existing default workspace running which connects to Postgres > and > > persist Data on postgres. > > > > In my new project, I want to keep it simple by accessing FileSystem and > so, > > I am adding one more workspace entry in repository.xml as follows: > > > > > >> <!-- > >> Second workspace for new project > >> --> > >> <Workspace name="test2"> > >> > > <FileSystem > >> class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> > >> <param name="path" value="test2"/> > >> </FileSystem> > > > > > > > >> <PersistenceManager > >> > class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager"> > >> <param name="url" value="jdbc:derby:test2/db;create=true"/> > >> <param name="schemaObjectPrefix" value="test2_"/> > >> </PersistenceManager> > >> > > <SearchIndex > >> class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> > >> <param name="path" value="test2/index"/> > >> <param name="extractorPoolSize" value="2"/> > >> <param name="supportHighlighting" value="true"/> > >> </SearchIndex> > >> </Workspace> > > > > > > Can someone tell me how can I make my jackrabbit more flexible by > accepting > > multiple workspaces: One to persists data to Postgres and another as > simple > > fileSystem? > > > > Thanks in advance, > > - Meenakshi > > > >
