I am working in Drools-Guvnor-5.5.0.Final version and have configured
repository.xml to save all assets + indexes in Oracle 11 database.
I am deploying Guvnor in a resilient environment which has two servers. Guvnor
deployed in both the servers is pointing to the same database.
Step 1
For this I generated the repository.xml from the administration panel of Guvnor
and replaced in both primary and secondary Guvnor instance. And when I started
the server and imported assets into primary guvnor, I was able to see the
following tables in database,
1. FS_FSENTRY;
2. FS_WS_DEFAULT_FSENTRY;
3. PM_WS_DEFAULT_FSENTRY;
4. PM_WS_DEFAULT_BINVAL;
5. PM_WS_DEFAULT_BUNDLE;
6. PM_WS_DEFAULT_REFS;
7. PM_WS_DEFAULT_NAMES;
8. REPOSITORY_FS_FSENTRY;
9. VERSIONING_FS_FSENTRY;
10.VERSIONING_PM_BINVAL;
11.VERSIONING_PM_BUNDLE;
12.VERSIONING_PM_NAMES;
13.VERSIONING_PM_REFS;
I also configured workspace.xml files in
1. jboss-eap-6.0/bin/repository/workspaces/default
2. jboss-eap-6.0/bin/repository/workspaces/security
Step 2
Now started secondary guvnor, configured similar to primary Guvnor. But
secondary server did not displayed the packages and assets from DB. Instead
asked me to install sample packages.
Step 3
I configured DataStore in repository.xml. Restarted primary Guvnor server and
found one more table is created in database with the assets init.
Table name : DS_DATASTORE
Step 4
Configured secondary Guvnor with DataStore and restarted it. Now I could see
the packages of primary Guvnor, But the assets in packages were not available.
I am attaching the repository.xml file from both the servers.
Thanks and Best Regards,
Zahid Ahmed
Senior Software Engineer | Emirates Group IT
P.O. Box 686 | Dubai, United Arab Emirates
T +971 4 245 2551| M +971 55 124 9171
?xml version=1.0?
!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the License); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an AS IS BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--
!DOCTYPE Repository PUBLIC -//The Apache Software Foundation//DTD Jackrabbit 1.4//EN
http://jackrabbit.apache.org/dtd/repository-1.4.dtd;
!-- Example Repository Configuration File --
Repository
!--
virtual file system where the repository stores global state
(e.g. registered namespaces, custom node types, etc.)
--
!--
FileSystem class=org.apache.jackrabbit.core.fs.local.LocalFileSystem
param name=path value=${rep.home}/repository/
/FileSystem
--
FileSystem class=org.apache.jackrabbit.core.fs.db.OracleFileSystem
param name=driver value=oracle.jdbc.OracleDriver/
param name=url value=jdbc:oracle:thin:@dolnxprodvm271:6516:wkflwop/
param name=user value=wkflw_ownr/
param name=password value=wkflw_ownr/
param name=schema value=oracle/
param name=schemaObjectPrefix value=FS_/
/FileSystem
!--
security configuration
--
Security appName=Jackrabbit
!--
access manager:
class: FQN of class implementing the AccessManager interface
--
AccessManager class=org.apache.jackrabbit.core.security.simple.SimpleAccessManager
!-- param name=config value=${rep.home}/access.xml/ --
/AccessManager
LoginModule class=org.apache.jackrabbit.core.security.simple.SimpleLoginModule
!-- anonymous user name ('anonymous' is the default value) --
!-- param name=anonymousId value=anonymous/ --
!--
default user name to be used instead of the anonymous user
when no login credentials are provided (unset by default)
--
!-- param name=defaultUserId value=superuser/ --
/LoginModule
/Security
!--
location of workspaces root directory and name of default workspace
--
Workspaces rootPath=${rep.home}/workspaces defaultWorkspace=default/
!--
workspace configuration template:
used to create the initial workspace if there's no workspace yet
--
Workspace name=${wsp.name}
!--
virtual file system of the workspace:
class: FQN of class implementing the FileSystem interface
--
!--
FileSystem