A few observations:
You appear to be using the File Journal,
but I cant see where the shared directory for the file journal is
defined.
I think, (please correct if wrong) it would be normal to use a DB
Journal if using a DB persistence manager.
Ian
On 30 Mar 2009, at 16:04, Nilshan wrote:
Hello All,
I have implemented Jackrabbit Clustering approach to create Two
clustering
for two different processes.
One for creation of rules (Cluster 1) and another for execution
(Cluster 2).
Both these clusters have a shared database (DB2)
where rules are stored.
The problem I face during execution is that , the execution process
does not
get the latest updates from Rule creation process. I mean , If I
change Rule
status it doesn't reflect immediately to execution process.
But when redeployed (Restart Server) the system executes as
expected. (With
latest changes applied by
Cluster 1)
My configuration are as below.
1.Shared DB ( Persistance Manager is ) : IBM DB2.
2. Drools Version : 5.x
3. Jackrabbit Version : 1.4.x
My clustering configuration for both the process are as below.
Configuration for Cluster 1 -----------
START-------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<Repository>
<Cluster id="Rule Creation">
<Journal class="org.apache.jackrabbit.core.journal.FileJournal">
</Journal>
</Cluster>
<FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
</FileSystem>
<Security appName="Jackrabbit">
<AccessManager
class="org.apache.jackrabbit.core.security.SimpleAccessManager" />
<LoginModule
class="org.apache.jackrabbit.core.security.SimpleLoginModule">
</LoginModule>
</Security>
<Workspaces rootPath="${rep.home}/workspaces"
defaultWorkspace="default" />
<Workspace name="${wsp.name}">
<PersistenceManager
class
="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
</PersistenceManager>
<FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
</FileSystem>
<!--<FileSystem
class="org.apache.jackrabbit.core.fs.db.DB2FileSystem">
</FileSystem>-->
<SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
</SearchIndex>
</Workspace>
<Versioning rootPath="${rep.home}/version">
<PersistenceManager
class
="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
</PersistenceManager>
<FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
</FileSystem>
<!--<FileSystem
class="org.apache.jackrabbit.core.fs.db.DB2FileSystem">
</FileSystem>-->
</Versioning>
<SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
</SearchIndex>
</Repository>
Configuration for Cluster 1 -----------
END-------------------------------
Configuration for Cluster 2 -----------
START-------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<Repository>
<Cluster id="Rule Execution">
<Journal class="org.apache.jackrabbit.core.journal.FileJournal">
</Journal>
</Cluster>
<FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
</FileSystem>
<Security appName="Jackrabbit">
<AccessManager
class="org.apache.jackrabbit.core.security.SimpleAccessManager" />
<LoginModule
class="org.apache.jackrabbit.core.security.SimpleLoginModule">
</LoginModule>
</Security>
<Workspaces rootPath="${rep.home}/workspaces"
defaultWorkspace="default" />
<Workspace name="${wsp.name}">
<PersistenceManager
class
="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
</PersistenceManager>
<FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
</FileSystem>
<!--<FileSystem
class="org.apache.jackrabbit.core.fs.db.DB2FileSystem">
</FileSystem>-->
<SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
</SearchIndex>
</Workspace>
<Versioning rootPath="${rep.home}/version">
<PersistenceManager
class
="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
</PersistenceManager>
<FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
</FileSystem>
<!--<FileSystem
class="org.apache.jackrabbit.core.fs.db.DB2FileSystem">
</FileSystem>-->
</Versioning>
<SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
</SearchIndex>
</Repository>
Configuration for Cluster 2 -----------
END-------------------------------
Both the process are running on same machine under different JVM.
Do we have any specific Journal for DB2 database as we have one for
Oracle.?
Please suggest me a feasible solution for the above problem.
Your Help for this would highly appreciated.
Thanks in advance.
Nilshan and Arpan.
--
View this message in context:
http://www.nabble.com/JackRabbit_Clustering-tp22785285p22785285.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.