jLibrary

Open Source Document Management System from your Desktop

  • Developers
  • Help & Support
  • Enterprise
  • Documents & Articles
jLibrary » Articles » Using the JCR Browser bundled with jLibrary

Information

Created in: 2006-06-13 00:45:56

Author: martin

Size: 5090 bytes

Last updated: 2006-06-13 00:45:56

Categories

Documents & Articles

You may be interested in...

There isn't related documents

Using the JCR Browser with jLibrary

This article shows how to use the JCRBrowser (http://jcrbrowser.sourceforge.net that Sandro Boehme has contributed and customized for being bundled with jLibrary.

Uninstalling the plug-in

  1. Remove all archives or folders starting with "org.visualcontent" from the plugin folder of jLibrary.
  2. Start jLibrary with the "-clean" option. You can do this by modifying the jLibrary.bat file. The resulting content of this file should look like this: "jLibrary.exe -clean -data . -vmargs -Xms128m"...

Connection to a local jLibrary repository

First you have to switch to the JCR Perspective. You can do this through the Window->Show Perspective... menu option, choosing Other... and selecting the JCR perspective.

Now it would be a nice thing to add the repository view to this JCR Perspective. You can do it with the Window->Show View... menu option and choosing the Repository perspective. The result could be something like this:

Now, please just select the jLibrary repository to connect with in the jLibrary Repository Browser. After that you can simply click the login button in the JCR Browser view to login to this repository. If you want to switch to an other local jLibrary repository you can simply select the other one and click the login button again.

Connection to a remote jLibrary repository

Setting the server configuration:

For security reasons RMI remote access to the jLibrary server is disabled by default. To access it anyway, you need to enable it in the server configuration. So, go to the webapps/jlibrary/WEB-INF/ directory on the server and edit the web.xml file. Now, uncomment the "rmi-port" init-parameter of the "RepositoryStartup" servlet. By doing this the default parameters are used as described in the web.xml file. You can change them there if you need special settings.

Setting the JCR Browser preferences

You only need to set any preferences if you want to connect to a remote jLibrary server. The JCR Browser preferences can be found in the preferences dialog of jLibrary ("Admin"==>"Preferences...") under the node "JCR Browser".

First you need to set the connection parameters you configured in the web.xml file. You can set the parameters to connect with, under the node "JCR Browser/Remote Java Content Repository" in the preferences dialog. The following need to be specified:

  • Host: The default value is "localhost". It is the "rmi-host" parameter of the "RepositoryStartup" servlet.
  • Port: The default is "1099". It is the "rmi-port" parameter of the "RepositoryStartup" servlet.
  • Repository Name: The default is "jackrabbit.repository". It is the repository-name parameter of the "RepositoryStartup" servlet.

The next step is setting the credentials. You can set the credentials to connect with, under the node "JCR Browser/Simple Credentials" in the preferences dialog. The following fields need to be specified:

  • Repository authorization configuration file: You must locate the jaas.config file. It should be on the JLIBRARY_INSTALLATION_DIR/conf directory.
  • User name and password: The default jLibrary installation uses "admin" as user name and "changeme" as password.
  • Workspace: Please use the jLibrary repository name in this field.

Now finally you have to set the remote connection method. Please click at the "JCR Browser" node in the preferences and choose "Remote Java Content Repository".

Finally you can connect to the remote repository. After that steps you can simply connect to the remote jLibrary server by clicking the login button in the JCR Browser view.

Switching the preferred connection method (local vs. remote)

To specify the preferred connection method please choose the "JCR Browser" node in the preference. There you can switch from one connection method to an other.

Feedback is very welcome

You can simply drop me an email or you can use the mailing list at http://sourceforge.net/projects/jcrbrowser or also the jLibrary developers maling list.

Staying up to date with the JCR Browser

You can stay up to date by subscribing to the RSS news feed: http://sourceforge.net/export/rss2_projnews.php?group_id=154841

Enjoy!

Sandro and Martin

 

Copyright © 2004-2006 Martín Pérez Mariñán & others. Created with jLibrary. Design by Andreas Viklund.

Eclipse, Built on Eclipse and Eclipse Ready are trademarks of Eclipse Foundation, Inc.

SourceForge.net Logo Donate to this project
Built on EclipseTM RCP Hosted at sourceforge.net