Difference between revisions of "Several OpenKM instances in the same JBoss"
From OpenKM Documentation
Line 3: | Line 3: | ||
{{Note|Replace # with an OpenKM installation id.}} | {{Note|Replace # with an OpenKM installation id.}} | ||
− | * '''openkm/src/ | + | * '''openkm/src/main/java/com/openkm/core/Config.java''' |
<source lang="java"> | <source lang="java"> | ||
Line 9: | Line 9: | ||
</source> | </source> | ||
− | * '''openkm/src/ | + | * '''openkm/src/main/java/com/openkm/frontend/client/config/Config.java''' |
<source lang="java"> | <source lang="java"> | ||
Line 15: | Line 15: | ||
</source> | </source> | ||
− | * '''openkm/src/ | + | * '''openkm/src/main/java/com/openkm/frontend/client/config/Config.java''' |
<source lang="java"> | <source lang="java"> | ||
Line 21: | Line 21: | ||
</source> | </source> | ||
− | * '''openkm/src/ | + | * '''openkm/src/main/java/com/openkm/ws''' |
<source lang="text"> | <source lang="text"> | ||
Line 33: | Line 33: | ||
</source> | </source> | ||
− | * '''openkm/src/hibernate.cfg.xml''' | + | * '''openkm/src/main/resources/hibernate.cfg.xml''' |
<source lang="xml"> | <source lang="xml"> | ||
Line 39: | Line 39: | ||
</source> | </source> | ||
− | * '''openkm/ | + | * '''openkm/src/main/webapp/WEB-INF/web.xml''' |
<source lang="xml"> | <source lang="xml"> | ||
+ | <display-name>OpenKM#</display-name> | ||
+ | </source> | ||
+ | |||
+ | * '''openkm/src/main/webapp/WEB-INF/jboss-web.xml''' | ||
+ | |||
+ | <source lang="xml"> | ||
+ | <security-domain>java:/jaas/OpenKM#</security-domain> | ||
<context-root>/OpenKM#</context-root> | <context-root>/OpenKM#</context-root> | ||
</source> | </source> |
Revision as of 20:38, 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:
Replace # with an OpenKM installation id. |
- openkm/src/main/java/com/openkm/core/Config.java
public static String INSTALL = "#";
- openkm/src/main/java/com/openkm/frontend/client/config/Config.java
private static String INSTALL = "#";
- openkm/src/main/java/com/openkm/frontend/client/config/Config.java
private static String INSTALL = "#";
- openkm/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/src/main/resources/hibernate.cfg.xml
<property name="hibernate.connection.datasource">java:/OKMWorkflow#DS</property>
- openkm/src/main/webapp/WEB-INF/web.xml
<display-name>OpenKM#</display-name>
- openkm/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