You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Gandhirajan Natarajan <Ga...@igate.com> on 2008/03/03 14:42:36 UTC

Jackrabbit Sample code

 

Hi,

 

We are trying to create a repository in jackrabbit and to add some
workspace and documents in it.

 

Could you please provide us with some sample codes to achieve the same?

 

Thanks & Regards,

Gandhi Rajan.N

________________________________

| iSIGHT Development Team | iGATE Global Solutions| T: +91-80-4104 1312|
M: +91 9886834626 | gandhirajan.natarajan@igate.com |

| 158-162 & 165-170 EPIP Phase II Whitefield Bangalore - 560 066 India |
www.igate.com <http://www.igate.com/>  |

 

iGATE is Ranked No. 3 in DQ-IDC best IT employer survey and Ranked No.6 
by Business Today-Mercer Human Resource Consulting-TNS  in a cross industry survey of Best Companies to work for in India
----------------------------------------------------------------DISCLAIMER---------------------------------------------------------
Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for use only by the individual 
or entity to whom it is addressed and may contain information that is privileged, confidential, or exempt from disclosure under 
applicable law. If you are not the intended recipient of this EMAIL immediately notify the sender at iGATE or mailadmin@igate.com 
and delete this EMAIL including any attachments

Re: Jackrabbit Sample code

Posted by Marcel Reutegger <ma...@gmx.net>.
Gandhirajan Natarajan wrote:
> We are trying to create a repository in jackrabbit and to add some
> workspace and documents in it.
> 
> Could you please provide us with some sample codes to achieve the same?

there's a JSP in jackrabbit-webapp that populates the workspace with documents 
downloaded from the internet [1].

Simply download the WAR file [2], deploy it into tomcat and don't forget to also 
put the jcr-1.0.jar [3] into tomcats shared classpath (shared/lib).

regards
  marcel

[1] 
https://svn.apache.org/repos/asf/jackrabbit/tags/1.4/jackrabbit-webapp/src/main/webapp/populate.jsp
[2] 
http://www.apache.org/dyn/closer.cgi/jackrabbit/binaries/jackrabbit-webapp-1.4.war
[3] http://www.day.com/maven/javax.jcr/jars/jcr-1.0.jar