Is the following still valid?

https://jackrabbit.apache.org/jcr/components/jackrabbit-jcr-rmi.html

Do I need to copy a jar into Tomcat lib folder?
How about the stuff that goes into context.xml?
Is the url part correct? Does a Repository type need to have an "url"
setter for that to work? 

<Resource name="jcr/Repository" auth="Container"
    type="javax.jcr.Repository"
    factory="org.apache.jackrabbit.rmi.client.ClientRepositoryFactory"
    url="..."/>

Brian

On Sun, Aug 29, 2021 at 10:58:11AM -0700, Brian E. Lavender wrote:
> I started the standalone.jar on port 8081 with the following and now
> I am trying to access it from a servlet.  Yet, I get an Exception
> where it can't `getSession` in my SessionFactory class. I am not sure
> what is going on. The one thing I checked is the looked so that it is
> "jcr/repository". I also checked that the ClientRepositoryFactory class
> is in my dependencies. Could it be the way I am creating the context.xml?
> 

-- 
Brian Lavender
http://www.brie.com/brian/

"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."

Professor C. A. R. Hoare
The 1980 Turing award lecture

Reply via email to