You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Sriram Narayanan <sr...@gmail.com> on 2007/03/07 08:23:48 UTC

A question on clustering

Hi all:

I have three JR instances.

Each instance
- points to the same Oracle database
- shares a journal folder (FileJournal)
- has a unique ID
- has separate index and revision folders.

Scenario A:
1. Run the first instance and add a node into the repository.
2. Start the second instance and try to read that node.

I get a javax.jcr.PathNotFoundException

Scenario B:

1. Run all the instances.
2. From the first instance, create a Node and set an attribute for it.
3. From the second instance, try to read back that node.

I get a javax.jcr.PathNotFoundException

What am I possibly doing wrong here ?

-- Sriram

Re: A question on clustering

Posted by Tobias Bocanegra <to...@day.com>.
> I have three JR instances.
>
> Each instance
> - points to the same Oracle database
> - shares a journal folder (FileJournal)
> - has a unique ID
> - has separate index and revision folders.
please note, that if you need versioning, they need to be clustered as
well, i.e. need to use your oracle db as persistence.

> Scenario A:
> 1. Run the first instance and add a node into the repository.
> 2. Start the second instance and try to read that node.

>
> I get a javax.jcr.PathNotFoundException
don't forget to save your changes....clustering only works on the
persistent space.
regards, toby


-- 
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Re: A question on clustering

Posted by Dominique Pfister <do...@day.com>.
Hi Sriram,

Both of these basic scenarios should definitely work and I still think
that there's something wrong with your setup. Scenario A would even
work without clustering, because the second instance has no memory
representation to update when it is freshly started. Given that the
PersistenceManagers point to the same database I'd try the following:

(1) Verify that your new node actually appears in the database, in a table
     named <schemaObjectPrefix>_NODE.
(2) Set logging level to info, in order to see whether the FileJournal
correctly processes
     changes made by another instance.

Kind regards
Dominique

On 3/7/07, Sriram Narayanan <sr...@gmail.com> wrote:
> Hi all:
>
> I have three JR instances.
>
> Each instance
> - points to the same Oracle database
> - shares a journal folder (FileJournal)
> - has a unique ID
> - has separate index and revision folders.
>
> Scenario A:
> 1. Run the first instance and add a node into the repository.
> 2. Start the second instance and try to read that node.
>
> I get a javax.jcr.PathNotFoundException
>
> Scenario B:
>
> 1. Run all the instances.
> 2. From the first instance, create a Node and set an attribute for it.
> 3. From the second instance, try to read back that node.
>
> I get a javax.jcr.PathNotFoundException
>
> What am I possibly doing wrong here ?
>
> -- Sriram
>