either just create the workspace by hand, by copying the default
workspace directory and adjusting it's name in the workspace.xml or
programmatically by:

((JackrabbitRepositroy) repository).createWorkspace(name);

regards, toby


On 1/23/07, ruchi goel <[EMAIL PROTECTED]> wrote:
Hi,
   I have following code which creates repository with default workspace :
            Hashtable env = new Hashtable();
            env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.jackrabbit.core.jndi.provider.DummyInitialContextFactory");
            env.put(Context.PROVIDER_URL, "localhost");
            InitialContext ctx = new InitialContext(env);

            RegistryHelper.registerRepository(ctx, REPOSITORY_NAME,
REPOSITORY_CONFIG, REPOSITORY_DIR, true);
            Repository repository = (Repository)
ctx.lookup(REPOSITORY_NAME);

Now, I want to create a workspace (other than default). I checked out
earlier mails on this subject which says to check documentation of
WorkspaceImpl @ http://jackrabbit.apache.org/api-1/
 WorkspaceImpl.createWorkspace() is  protected method, then is it
mandatory to have my class extend from WorkspaceImpl .

What is the correct way to create workspace if I want to go ahead with
the above code ?


Thanks in advance ,
Ruchi



--
-----------------------------------------< [EMAIL PROTECTED] >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Reply via email to