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