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.}} | ||
− | * ''' | + | |
+ | == Files located at $OPENKM_PRJ == | ||
+ | |||
+ | * '''src/main/java/com/openkm/core/Config.java''' | ||
<source lang="java"> | <source lang="java"> | ||
Line 9: | Line 12: | ||
</source> | </source> | ||
− | * ''' | + | * '''src/main/java/com/openkm/frontend/client/config/Config.java''' |
<source lang="java"> | <source lang="java"> | ||
Line 15: | Line 18: | ||
</source> | </source> | ||
− | * ''' | + | * '''src/main/java/com/openkm/frontend/client/config/Config.java''' |
<source lang="java"> | <source lang="java"> | ||
Line 21: | Line 24: | ||
</source> | </source> | ||
− | * ''' | + | * '''src/main/java/com/openkm/ws''' |
<source lang="text"> | <source lang="text"> | ||
Line 27: | Line 30: | ||
</source> | </source> | ||
− | * ''' | + | * '''src/main/resources/hibernate.cfg.xml''' |
<source lang="xml"> | <source lang="xml"> | ||
Line 33: | Line 36: | ||
</source> | </source> | ||
− | * ''' | + | * '''src/main/webapp/WEB-INF/web.xml''' |
<source lang="xml"> | <source lang="xml"> | ||
Line 39: | Line 42: | ||
</source> | </source> | ||
− | * ''' | + | * '''src/main/webapp/WEB-INF/jboss-web.xml''' |
<source lang="xml"> | <source lang="xml"> | ||
Line 46: | Line 49: | ||
</source> | </source> | ||
− | * '''$JBOSS_HOME | + | * '''src/pom.xml''' |
+ | |||
+ | <source lang="xml"> | ||
+ | <finalName>OpenKM#</finalName> | ||
+ | </source> | ||
+ | |||
+ | == Files located at $JBOSS_HOME == | ||
+ | |||
+ | * '''OpenKM#.cfg''' | ||
<source lang="text"> | <source lang="text"> | ||
Line 52: | Line 63: | ||
</source> | </source> | ||
− | * ''' | + | * '''server/default/conf/login-config.xml''' |
<source lang="text"> | <source lang="text"> | ||
Line 58: | Line 69: | ||
</source> | </source> | ||
− | * ''' | + | * '''server/default/deploy/openkm-ds.xml''' |
<source lang="text"> | <source lang="text"> | ||
Line 64: | Line 75: | ||
</source> | </source> | ||
− | * Remove jcr-1.0.jar from OpenKM.war and copy to ''' | + | * Remove jcr-1.0.jar from OpenKM.war and copy to '''server/default/lib''' |
[[Category: Installation Guide]] | [[Category: Installation Guide]] | ||
[[Category: OKM Network]] | [[Category: OKM Network]] |
Revision as of 20:44, 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. |
Files located at $OPENKM_PRJ
- src/main/java/com/openkm/core/Config.java
public static String INSTALL = "#";
- src/main/java/com/openkm/frontend/client/config/Config.java
private static String INSTALL = "#";
- src/main/java/com/openkm/frontend/client/config/Config.java
private static String INSTALL = "#";
- src/main/java/com/openkm/ws
Disable WS deleting this folder.
- src/main/resources/hibernate.cfg.xml
<property name="hibernate.connection.datasource">java:/OKMWorkflow#DS</property>
- src/main/webapp/WEB-INF/web.xml
<display-name>OpenKM#</display-name>
- src/main/webapp/WEB-INF/jboss-web.xml
<security-domain>java:/jaas/OpenKM#</security-domain>
<context-root>/OpenKM#</context-root>
- src/pom.xml
<finalName>OpenKM#</finalName>
Files located at $JBOSS_HOME
- OpenKM#.cfg
Duplicate OpenKM configuratoin to meet the new context.
- server/default/conf/login-config.xml
Duplicate OpenKM entry to meet the new context.
- 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 server/default/lib