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

From OpenKM Documentation
Jump to: navigation, search
Line 25: Line 25:
 
<source lang="text">
 
<source lang="text">
 
Disable WS deleting this folder.
 
Disable WS deleting this folder.
</source>
 
 
* '''$JBOSS_HOME/server/default/conf/login-config.xml'''
 
 
<source lang="text">
 
Duplicate OpenKM entry to meet the new context.
 
 
</source>
 
</source>
  
Line 56: Line 50:
 
<source lang="text">
 
<source lang="text">
 
Duplicate OpenKM configuratoin to meet the new context.
 
Duplicate OpenKM configuratoin to meet the new context.
 +
</source>
 +
 +
* '''$JBOSS_HOME/server/default/conf/login-config.xml'''
 +
 +
<source lang="text">
 +
Duplicate OpenKM entry to meet the new context.
 
</source>
 
</source>
  

Revision as of 21:41, 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_PRJ/src/main/java/com/openkm/core/Config.java
public static String INSTALL = "#";
  • $OPENKM_PRJ/src/main/java/com/openkm/frontend/client/config/Config.java
private static String INSTALL = "#";
  • $OPENKM_PRJ/src/main/java/com/openkm/frontend/client/config/Config.java
private static String INSTALL = "#";
  • $OPENKM_PRJ/src/main/java/com/openkm/ws
Disable WS deleting this folder.
  • $OPENKM_PRJ/src/main/resources/hibernate.cfg.xml
<property name="hibernate.connection.datasource">java:/OKMWorkflow#DS</property>
  • $OPENKM_PRJ/src/main/webapp/WEB-INF/web.xml
<display-name>OpenKM#</display-name>
  • $OPENKM_PRJ/src/main/webapp/WEB-INF/jboss-web.xml
<security-domain>java:/jaas/OpenKM#</security-domain>
<context-root>/OpenKM#</context-root>
  • $JBOSS_HOME/OpenKM#.cfg
Duplicate OpenKM configuratoin to meet the new context.
  • $JBOSS_HOME/server/default/conf/login-config.xml
Duplicate OpenKM entry to meet the new context.
  • $JBOSS_HOME/server/default/deploy/openkm-ds.xml
Duplicate OpenKM datasource configuration to meet the new context.
  • Remove jcr-1.0.jar from OpenKM.war and copy to $JBOSS_HOME/server/default/lib