cancel
Showing results for 
Search instead for 
Did you mean: 

Rivet Remote API

klwalker
Champ in-the-making
Champ in-the-making
I'm trying to install Rivet's remote API, available for download from the Alfresco Forge but am stuck.  There are 2 readme files, README-cma-alfresco.txt and README-cma.txt and I'm not sure which to look at, so I started with cma-alfresco as it seemed more detailed.  I have pasted the steps from the readme below…I have completed step 2 but am unsure of what to do in step 3…I'm very unfamiliar with maven so this may be obvious to maven users.  I'm basically just looking for more detailed steps:

1) install maven-amp-plugin
http://forge.alfresco.com/frs/download.php/302/alfresco-maven-amp-plugin-1.0.0-RC1.zip

2) run following commands (change -Dfile location to your local alfresco-repository.jar/alfresco-web-client.jar/alfresco-core.jar)
mvn install:install-file -DgroupId=alfresco -DartifactId=alfresco-repository -Dversion=2.1.1 -Dpackaging=jar -Dfile=/Users/hyanghee/workspaces/alfresco/alfresco-enterprise-sdk-2.1.1/lib/server/alfresco-repository.jar
mvn install:install-file -DgroupId=alfresco -DartifactId=alfresco-web-client -Dversion=2.1.1 -Dpackaging=jar -Dfile=/Users/hyanghee/workspaces/alfresco/alfresco-enterprise-sdk-2.1.1/lib/server/alfresco-web-client.jar
mvn install:install-file -DgroupId=alfresco -DartifactId=alfresco-core -Dversion=2.1.1 -Dpackaging=jar -Dfile=/Users/hyanghee/workspaces/alfresco/alfresco-enterprise-sdk-2.1.1/lib/server/alfresco-core.jar

3) install cma-api to your local repository

4) do: mvn package

5) copy the amp file to alfresco/amps folder and run apply_amp.sh.
7 REPLIES 7

jpfi
Champ in-the-making
Champ in-the-making
Hi,
what is that ;-)…I've never heard about this api! i just found the the forge project and the javadocs.
That sounds very interesting. I don't want to hijack the thread, but could someone please provide some additional infos about the technologies this API relies on.
Many Thanks, Jan

klwalker
Champ in-the-making
Champ in-the-making
I believe it uses Java-backed web scripts under the hood.  We were noticing some performance issues during our load testing using the Web Services API so are looking for an alternative.  The RMI API is not recommended for Production environments, so we're hoping this API developed by Rivetlogic will be useful to us.

jpfi
Champ in-the-making
Champ in-the-making
Hi,
yab, Alfresco is missing a real high performance remote API, perhaps this is the clue…
I'm seeing several potential use cases…I'll have to take a deeper look 😉
Cheers, Jan

klwalker
Champ in-the-making
Champ in-the-making
Nevermind.  The maven stuff that was in the readme is just for building the project, but it actually comes prebuilt with one amp and 2 jars.  Just need to install the amp and put the jars in the client classpath.

rdanner
Champ in-the-making
Champ in-the-making
Does anyone need any further assistance with CMA (We are now calling it the Remote Alfresco API Rivet)  I'd be glad to help or put you in contact with the engineers who are working on the remoting plug-in.

klwalker
Champ in-the-making
Champ in-the-making
I have been trying to figure out just how to authenticate a ticket using this API and am getting a class not found error, com/rivetlogic/crypto/Base64.  It seems this class is not in either of the client jars, but is used in the RestExecuterImpl.  Where can I get this class from?

FYI, here is what I have as of now to try to authenticate.  I'm not sure whether I'm on the right track or not:

          m_oAuthenticationServiceImpl = new AuthenticationServiceImpl();
          RestExecuterImpl oRestExecuter = new RestExecuterImpl();
          CmaCastorUnmarshaller oCmaCastorUnmarshaller = new CmaCastorUnmarshaller();
          oRestExecuter.setCmaUnmarshaller(oCmaCastorUnmarshaller);
          CmaMappingServiceImpl oCmaMappingServiceImpl = new CmaMappingServiceImpl();
          oCmaMappingServiceImpl.setMappingConfiguration("castor/mapping/mappingservice.configuration.xml");
          oCmaMappingServiceImpl.setMappingFile("castor/mapping/mappingservice.mapping.xml");
          oCmaMappingServiceImpl.setCmaUnmarshaller(oCmaCastorUnmarshaller);
          oCmaMappingServiceImpl.init();
          m_oAuthenticationServiceImpl.setServiceUri("/cma/authenticationservice");
          m_oAuthenticationServiceImpl.setRestExecuter(oRestExecuter);
          m_oAuthenticationServiceImpl.setCmaMappingService(oCmaMappingServiceImpl);
          m_oTicket = m_oAuthenticationServiceImpl.authenticate("http://127.0.0.1:8080/alfresco/service", "admin", new String("admin").toCharArray());

rivetlogic
Champ on-the-rise
Champ on-the-rise