cancel
Showing results for 
Search instead for 
Did you mean: 

How to point Alfresco Share to a specific Alfresco instance?

cantoni
Champ on-the-rise
Champ on-the-rise
Hello,

Yesterday I configured two Alfresco in the same Tomcat instance.

Inside webapps I have the following folders:

alfresco (3.4) (alfresco-global-34.properties) (database: alfresco) (dir.root=/dados/alfresco/alf_data)
alfresco40 (4.0)  (alfresco-global.properties) (database: alfresco_40) (dir.root=/dados/alfresco_40/alf_data)
share (3.4)
share40 (4.0)

In the alfresco-global.properties (4.0) I had to change the TCP ports of several services. To use two (or more) alresco-global.properties I had to change the tomcat6/webapps/alfresco/WEB-INF/classes/alfresco/core-services-context.xml.

Now I have two Alfresco Explorer working fine in the same Tomcat instance.

My problem is with Alfresco Share. When I access share40 the data (sites, my tasks, etc) are of alfresco (3.4). But I need that share40 points to alfresco40.

How can I configure share40 to point to alfresco40 instance?

Sorry my english. 🙂

Thank you,
Luiz
3 REPLIES 3

cantoni
Champ on-the-rise
Champ on-the-rise
Thank you Mike!

It works!

Steps:

1. I've renamed the tomcat6/shared/classes/alfresco/web-extension/share-config-custom.xml.sample to share-config-custom-40.xml
2. I've changed the tomcat6/webapps/share40/WEB-INF/classes/alfresco/slingshot-application-context (replacing <value>classpath:alfresco/web-extension/share-config-custom.xml</value> to <value>classpath:alfresco/web-extension/share-config-custom-40.xml</value>)

Now I have 3.4 and 4.0 working (Explorer and Share) in the same Tomcat instance.

I understand that isn't best way to configure because I need to duplicate everything (database, respository, config files). But it's only a test. In the production I will have only one Alfresco.

Luiz

cantoni
Champ on-the-rise
Champ on-the-rise
I forgot one step:

3. I've changed the share-config-custom-40.xml (uncommenting and replacing the lines described in http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Ftasks%2Fshare-change-p...)

Ex.: <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url> to <endpoint-url>http://localhost:8080/alfresco40/s</endpoint-url>

<endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url>  to <endpoint-url>http://localhost:8080/alfresco40/wcs</endpoint-url>

Regards,
Luiz