+1 to deleting the old one. This is pretty smart. I especially like
the way you've automatically passed the XML in the native best XML
format. Maybe its time for me to learn Ruby!

Paul

On 10/27/06, ant elder <[EMAIL PROTECTED]> wrote:
Moved into trunk now, i'll look at doing some better samples and doc for it.
For now the JavaDoc describes what it does:
https://svn.apache.org/repos/asf/incubator/synapse/trunk/java/modules/extensions/src/org/apache/synapse/mediators/bsf/ScriptMediatorFactory.java

How about deleting the old javascript mediator now as this bsf one provides
the same functionality?

   ...ant


On 10/21/06, ant elder <[EMAIL PROTECTED]> wrote:
> I started a script mediator based on BSF in the scratch area:
https://svn.apache.org/repos/asf/incubator/synapse/trunk/scratch/ant/BSF/
>
> The basic function works now, there's a simple Synapse config file and
associate JavaScript program demonstrating it which mediates the messages
used by the Synapse StockquoteClient sample so it uses the xmethods
stockquote service:
>
>
https://svn.apache.org/repos/asf/incubator/synapse/trunk/scratch/ant/
BSF/repository/conf/sample/synapse_sample_script2.xml
>
https://svn.apache.org/repos/asf/incubator/synapse/trunk/scratch/ant/
BSF/repository/conf/sample/xmethodsStockquote.js
>
> This uses the Synapse registry and stores the script in a property which
is different than the JavaScript mediator which  embeds the script  in a
CDATA within the Synapse config XML file. There's an example of theis at:
https://svn.apache.org/repos/asf/incubator/synapse/trunk/scratch/ant/
BSF/repository/conf/sample/synapse_sample_js.xml .
>
> I think i like the registry/property approach better as the embedded
approach gets a bit hard to read. I guess it could support both but maybe
that just makes things even more complicated. Does anyone else have a
preference either way?
>
>    ...ant
>




--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to