jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "JackrabbitOnJBoss" by GustavoOrair
Date Wed, 04 May 2011 18:18:31 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The "JackrabbitOnJBoss" page has been changed by GustavoOrair.
The comment on this change is: Improving jcr commands documentation.
http://wiki.apache.org/jackrabbit/JackrabbitOnJBoss?action=diff&rev1=34&rev2=35

--------------------------------------------------

  }}}
  
  === Access the repository remotely from the command line interface ===
+ 
+ Since version 2.1, jcr-commands has been integrated to JackRabbit Standalone (https://issues.apache.org/jira/browse/JCR-2457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel).
+ 
+ It may be executed by parameter -i or --cli. 
+ 
+ For example:
+ {{{
+ java -Xmx256m -jar jackrabbit-standalone-2.2.4.jar --cli file:///scratch/jcr/repository
+ }}}
+ Notice that the parameter --cli accepts a valid URI to access the repository. It invokes
JcrUtils.getRepository(URI) from jackrabbit-commons to get the access to the repository. 
+ See the documentation of this method in jackrabbit-commons for more detail. 
+ 
+ See the documentation of the repository implementation you want to use for whether it supports
this repository URI convention and for what the repository URI should look like. For example,
Jackrabbit 2.0 supports the following types of repository URIs:
+ 
+ http(s)://...
+     A remote repository connection using SPI2DAVex with the given URL. See the jackrabbit-jcr2dav
component for more details. 
+ file://...
+     An embedded Jackrabbit repository located in the given directory. See the jackrabbit-core
component for more details. 
+ jndi:...
+     JNDI lookup for the named repository. See the JndiRepositoryFactory class for more details.

+ 
+ The next examples are valid:
+ {{{
+ java -Xmx256m -jar jackrabbit-standalone-2.2.4.jar --cli jndi:jcr/Repository
+ }}}
+ 
+ After executing standalone with --cli parameter, you may execute jcr commands in an interactive
mode.
+ Execute 
+ {{{
+   ``help''
+ }}} 
+ to list the available commands and 
+ {{{
+   help [command]
+ }}} for details in a specific command.
+ 
+ For example, you may execute the following commands:
+ 
+ Login using the user and password in the repository:
+ {{{
+ login user password
+ }}}
+ 
+ create an additional ``workspace1'' workspace:
+ {{{
+ createWorkspace workspace1
+ }}}
+  
+ 
+ ==== DEPRECATED ====
   * checkout jcr-commands from subversion
   * build with "maven jar:jar"
   * unzip the generated zip file at ./target into a folder of your choice

Mime
View raw message