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

From OpenKM Documentation
Jump to: navigation, search
Line 3: Line 3:
 
{{Note|Replace # with an OpenKM installation id.}}
 
{{Note|Replace # with an OpenKM installation id.}}
  
* '''openkm/src/main/java/com/openkm/core/Config.java'''
+
* '''$OPENKM_PRJ/src/main/java/com/openkm/core/Config.java'''
  
 
<source lang="java">
 
<source lang="java">
Line 9: Line 9:
 
</source>
 
</source>
  
* '''openkm/src/main/java/com/openkm/frontend/client/config/Config.java'''
+
* '''$OPENKM_PRJ/src/main/java/com/openkm/frontend/client/config/Config.java'''
  
 
<source lang="java">
 
<source lang="java">
Line 15: Line 15:
 
</source>
 
</source>
  
* '''openkm/src/main/java/com/openkm/frontend/client/config/Config.java'''
+
* '''$OPENKM_PRJ/src/main/java/com/openkm/frontend/client/config/Config.java'''
  
 
<source lang="java">
 
<source lang="java">
Line 21: Line 21:
 
</source>
 
</source>
  
* '''openkm/src/main/java/com/openkm/ws'''
+
* '''$OPENKM_PRJ/src/main/java/com/openkm/ws'''
  
 
<source lang="text">
 
<source lang="text">
Line 33: Line 33:
 
</source>
 
</source>
  
* '''openkm/src/main/resources/hibernate.cfg.xml'''
+
* '''$OPENKM_PRJ/src/main/resources/hibernate.cfg.xml'''
  
 
<source lang="xml">
 
<source lang="xml">
Line 39: Line 39:
 
</source>
 
</source>
  
* '''openkm/src/main/webapp/WEB-INF/web.xml'''
+
* '''$OPENKM_PRJ/src/main/webapp/WEB-INF/web.xml'''
  
 
<source lang="xml">
 
<source lang="xml">
Line 45: Line 45:
 
</source>
 
</source>
  
* '''openkm/src/main/webapp/WEB-INF/jboss-web.xml'''
+
* '''$OPENKM_PRJ/src/main/webapp/WEB-INF/jboss-web.xml'''
  
 
<source lang="xml">
 
<source lang="xml">

Revision as of 20:40, 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.
  • $JBOSS_HOME/server/default/conf/login-config.xml
Duplicate OpenKM entry to meet the new context.
  • $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/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