Thanks for the help, Jukka.
So I have now read through the TCK User Guide, installed the TCK, and even run it (using the
web app) against the default Jackrabbit repository. However, I am now having trouble understanding
how to run it against my own JSR-170 implementation.
You said:
> To run the TCK on your adapter you need to implement a custom
> RepositoryStub class and configure the TCK accordingly. You can check
> the existing repositoryStubImpl.properties for an example on how
> Jackrabbit is configured for the TCK.
Now the User Guild talks a lot about JNDI. Am I correct in understanding that if I want to
use the TCK-webapp, that I don't implement a custom RepositoryStub class? That instead I
use the default one and register my repository via JNDI so that the JCR TCK Web Application
can connect to it? If so, how do I do this? I have been reading about JNDI, but it is not
clear to me how to use it to allow the provided RepositoryStub to find my repository.
If I do decide to implement a custom RepositoryStub class, then how do I invoke the TCK so
that it uses this class to connect to my JSR-170 implementation? I am only able to find information
on using the web app.
Thanks again,
Sebastian Celis
-----Original Message-----
From: Jukka Zitting [mailto:jukka.zitting@gmail.com]
Sent: Tuesday, February 06, 2007 3:07 PM
To: users@jackrabbit.apache.org
Subject: Re: Running the TCK
Hi,
On 2/6/07, Sebastian Celis <Sebastian.Celis@stellent.com> wrote:
> I have recently begun work on writing a JSR-170 adapter. During the
> development process, I would like to be able to use the TCK to test and
> make sure that I am complying with the spec. However, after browsing
> through a number of readmes and websites, I have become quite confused
> as to where I should obtain and how to run the TCK.
Check out the TCK download link
http://www.day.com/content/en/product/jsr_170/tck/tckform.html that
you can find from the Final Release download page of the official JSR
170 page http://jcp.org/en/jsr/detail?id=170.
Note also the exclude list available at
http://www.day.com/site/en/index/related/downloads/technology_compatibility.html
that lists the test cases with known issues.
> From what I understand, the TCK is included in the Jackrabbit subversion
> repository, so I have checked out the jackrabbit source from
> http://svn.apache.org/repos/asf/jackrabbit/trunk
The TCK sources are included in the Jackrabbit codebase, but for
official certification you should be using the version available from
the above download link.
> How do I now take the contents of this repository and run the TCK against my
> adapter? Is there any documentation on how to do this? I have had a lot of
> trouble finding any.
To run the TCK on your adapter you need to implement a custom
RepositoryStub class and configure the TCK accordingly. You can check
the existing repositoryStubImpl.properties for an example on how
Jackrabbit is configured for the TCK.
BR,
Jukka Zitting
|