I am playing with the "spring-surf-application-test" example from the trunk, against an Alfresco 3.2r2 repository.
This is the config:
Code:<config evaluator="string-compare" condition="Remote"> <remote> <!-- Test Endpoint --> <endpoint> <id>alfresco-test</id> <name>Alfresco - test access</name> <description>Test account access to Alfresco</description> <connector-id>alfresco</connector-id> <endpoint-url>http://localhost:8080/alfresco/service</endpoint-url> <identity>declared</identity> <username>admin</username> <password>admin</password> <unsecure>true</unsecure> </endpoint> </remote> </config>
This is how the connector is then used in the webscripts:
...but this doesn't work.Code:var connector = remote.connect("alfresco");
If I change the webscript to this:
...then it is OK.Code:var connector = remote.connect("alfresco-test");
Typo?
Anyways, what is the difference between the "id" and the "connector-id" property, and in what case either of them should be used?


Reply With Quote