Leo Simons wrote:

Stephen McConnell wrote:
> [scripting]

I don't quite recall why, but I ended up not very much liking the jelly service. Probably biased. Anyway, its easy to embed, as is BSF, as is a specific engine like BeanShell (which I'm currently doing as its the simplest IMO).

For an example of exactly how much control you could give to scripts:

http://cvs.sourceforge.net/viewcvs.py/*checkout*/jicarilla/jicarilla-sandbox/platform/components/http/impl/src/java/com/leosimons/Main.java?content-type=text%2Fplain&rev=1.1

http://cvs.sourceforge.net/viewcvs.py/*checkout*/jicarilla/jicarilla-sandbox/platform/components/http/impl/src/bsh/startup.bsh?content-type=text%2Fplain&rev=1.9


basically, load your service, expose the environment (ie instances of the important stuff) under some name, and your scripts can wreak havoc every way you like. Add security by exposing only specific parts of the environment. The next step is moving pieces of logic from java to your chosen scripting language. The tricky part is deciding how much to move.


Another BeanShell-based example here (component adapter factory supporting scripted configuration, for picocontainer):

http://cvs.codehaus.org/viewcvs.cgi/nano/bsh/?root=nanocontainer

I am not sure what parts of merlin you'd want to expose or how you would like to do it.


I'm thinking about a scriptable kernel with the ability to add and remove components - trigger assembly and deployment - etc.

Stephen.



- LSD



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



--


Stephen J. McConnell
mailto:[EMAIL PROTECTED]




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



Reply via email to