cancel
Showing results for 
Search instead for 
Did you mean: 

RAD with Java Backed WebScripts / Foundation API

kapil_k
Champ on-the-rise
Champ on-the-rise
We plan to use Java backed web scripts that leverage the Foundation API.
The idea is to expose webscripts that allow users to do complex operations on the repository (content create, update, read, delete, search, security)
Alfresco Version: Community 2.9.0B

Our dev-build-test cycle is too slow, right now.
Every line of change to our java code (leveraging Foundation API) needs restart of Alfresco web client with the new jars embedded in alfresco.war

We would like to unit test our server-side code (back-end java code - that uses Foundation API) which connects to the repository and provides RAD capabilities (preferably within eclipse IDE).

Kindly advise how we can achieve this.
The idea is to have a quick dev-build-test cycle.

Thanks,
Kapil
2 REPLIES 2

dhalupa
Champ on-the-rise
Champ on-the-rise
You will hardly achieve what you are trying if you are using Java backed web scripts. For what I know this was the reason why support for server side JavaScript was introduced, to speed up development cycles.
I do not want to sound like a commercial but it might give you a hint how to proceed. In AlfExt we have solved the same problem by introducing a support for Groovy, so the part of application which has to be more "dynamic" is written as Groovy script which is automatically reloaded and parsed upon change. The same thing happens with xml configuration and with those two features you have a real RAD capabilities.

Kind regards,

Denis

dinger
Champ in-the-making
Champ in-the-making
Why don't you set up alfresco to run in the embedded Tomcat instance in eclipse?

That way your changes will sync up without a restart/deploy.

Rob