Hi Zukka et al, Thanks for the info. I tried your suggestion. * I modified the JackRabbit web.xml to only include the config for the "Repository" servlet. * Changing "repository-name" worked fine * However I expected/hoped that specifying an rmi-url with host and port would result in the repository being exposed via RMI. This didn't happen.
Looking at the code for RepositoryAccessServlet it does not appear to be capable of exposing a repository via RMI, unlike RepositoryStartup which can. I'm guessing RepositoryAccessServlet is only intended for access, not for publishing? If this is the case, is it possible to get the RepositoryStartup to either: * read from a JNDI name and publish via RMI, or * initialise the repository and publish into the global JNDI spec for other webapps AND via RMI. Perhaps I'm just looking for the right combination of "java.naming.provider.url" and "java.naming.factory.initial" values to emulate the settings on the Tomcat server.xml. Using model 2 with RMI enabled access will be very, very useful for remote adminstration. Regards, Shaun. -----Original Message----- From: Jukka Zitting [mailto:[EMAIL PROTECTED] Sent: 15 February 2007 08:17 To: [email protected] Subject: Re: Providing RMI access for a model 2 - shared deployment Hi, On 2/14/07, Shaun Barriball <[EMAIL PROTECTED]> wrote: > So I don't actually have a deployed webapp based on the > JackRabbit-webapp.war OK, understood. > 1) do I need to deploy the JackRabbit-webapp and configure its JNDI > and RMI settings such that it "replaces" the configuration in the > server.xml?, or > > 2) do I need to deploy the JackRabbit-webapp such that uses JNDI to > lookup the repository configured in the server.xml and then just > exposes via RMI?, > > 3) can I improve my server.xml and add the RMI library to common/lib > to get JackRabbit registered in both JNDI and RMI WITHOUT the need to > deploy JackRabbit-webapp? Option 2 is the best for you. You need to remove the "RepositoryStartup" servlet configuration in the jackrabbit-webapp web.xml descriptor and modify the "Repository" servlet configuration to load the repository from JNDI and to expose it via RMI. BR, Jukka Zitting ___________________________________________________________ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html
