Standalone Server
- 编辑:admin -Standalone Server
--file arglocation of this jar file -h。
the standalone server also supports remote JCR access over RMI. After adding the JCR API and the jackrabbit-jcr-rmi jars to your classpath, simply point the --backup-conf option to a custom repository configuration file. Note that by default the backups are made using the default Jackrabbit repository configuration, then all content inside it is overwritten. Note also that the search indexes of the target repository will be generated only when the repository is next started. This keeps the disk size of the backup smaller, you can access the repository remotely with the following code: import org.apache.jackrabbit.rmi.repository.URLRemoteRepository;Repository repository = new URLRemoteRepository(:8080/rmi); Backup and migration You can also use the standalone server jar to backup existing repositories or to migrate them to a different configuration. The backup mode is activated with the --backup command line option. The essential command line options and their default values for the backup mode are: