cancel
Showing results for 
Search instead for 
Did you mean: 

Webscript on an ASR

boneill
Star Contributor
Star Contributor
Hi All,

I have written a webscript to support a dynamic web page.  The page is stored in a wcm avm and deployed to an asr server. 

The deployed web page (site) needs to be able to call the webscript from the asr server.  I have noted on deploy that the webscript is not compied to the asr server.  My question is, Is there a way to deploy your webscripts to the asr server when deploying the webproject.  Has anyone any best practices for using data webscripts in an asr situation.  The doco is full of advice on that you should use webscripts for dynamic pages but the deploy info is very lean.

Any advice gratefully received.

Regards

Brian
1 REPLY 1

pmonks
Star Contributor
Star Contributor
As described at http://wiki.alfresco.com/wiki/Web_Scripts#Step_2:_Storing_a_Web_Script, Web Scripts are stored either in the Alfresco webapp's classpath or in certain subfolders of the Data Dictionary space (which is part of the DM repository) - they cannot be stored in an AVM store (Web Project).  Since the Alfresco WCM deployment functionality only supports deployment of assets stored in an AVM store (Web Project) you need to manually deploy your Web Scripts to an ASR.

This is a deliberate design decision - Alfresco attempts to maintain a clear separation between deployment of content (your web site) and deployment of configuration and code extensions to the Alfresco system itself.  Web Scripts, by virtue of extending the public remotely invokable API of Alfresco, are not considered part of the content of your web site.

Cheers,
Peter