Difference between revisions of "Several OpenKM instances in the same JBoss"

From OpenKM Documentation
Jump to: navigation, search
Line 1: Line 1:
 
You can have several OpenKM instances running in the same JBoss. This implies some source code modifications, so read carefully [[Developer Guide]] before trying this:
 
You can have several OpenKM instances running in the same JBoss. This implies some source code modifications, so read carefully [[Developer Guide]] before trying this:
  
* '''openkm/src/hibernate.cfg.xml'''
+
{{Note|Replace # with an OpenKM installation id.}}
 
 
<source lang="xml">
 
<property name="hibernate.connection.datasource">java:/OKMWorkflow#DS</property>
 
</source>
 
 
 
* '''openkm/merge/ear/META-INF/application.xml'''
 
 
 
<source lang="xml">
 
<context-root>/OpenKM#</context-root>
 
</source>
 
  
 
* '''openkm/src/es/git/openkm/core/Config.java'''
 
* '''openkm/src/es/git/openkm/core/Config.java'''
Line 41: Line 31:
 
<source lang="text">
 
<source lang="text">
 
Duplicate OpenKM entry to meet the new context.
 
Duplicate OpenKM entry to meet the new context.
 +
</source>
 +
 +
* '''openkm/src/hibernate.cfg.xml'''
 +
 +
<source lang="xml">
 +
<property name="hibernate.connection.datasource">java:/OKMWorkflow#DS</property>
 +
</source>
 +
 +
* '''openkm/merge/ear/META-INF/application.xml'''
 +
 +
<source lang="xml">
 +
<context-root>/OpenKM#</context-root>
 
</source>
 
</source>
  
Line 46: Line 48:
  
 
* Create another '''$JBOSS_HOME/OpenKM#.cfg'''
 
* Create another '''$JBOSS_HOME/OpenKM#.cfg'''
 +
 +
* Create another '''$JBOSS_HOME/server/default/deploy/openkm-ds.xml'''
  
 
[[Category: Installation Guide]]
 
[[Category: Installation Guide]]
 
[[Category: OKM Network]]
 
[[Category: OKM Network]]

Revision as of 21:31, 9 February 2010

You can have several OpenKM instances running in the same JBoss. This implies some source code modifications, so read carefully Developer Guide before trying this:


Nota clasica.png Replace # with an OpenKM installation id.

  • openkm/src/es/git/openkm/core/Config.java
public static String INSTALL = "#";
  • openkm/src/es/git/openkm/frontend/client/config/Config.java
private static String INSTALL = "#";
  • openkm/src/es/git/openkm/frontend/client/config/Config.java
private static String INSTALL = "#";
  • openkm/src/es/git/openkm/ws
Disable WS deleting this folder.
  • $JBOSS_HOME/server/default/conf/login-config.xml
Duplicate OpenKM entry to meet the new context.
  • openkm/src/hibernate.cfg.xml
<property name="hibernate.connection.datasource">java:/OKMWorkflow#DS</property>
  • openkm/merge/ear/META-INF/application.xml
<context-root>/OpenKM#</context-root>
  • Remove jcr-1.0.jar from OpenKM.war and copy to $JBOSS_HOME/server/default/lib
  • Create another $JBOSS_HOME/OpenKM#.cfg
  • Create another $JBOSS_HOME/server/default/deploy/openkm-ds.xml