I use scala as dynamic language (JSR-223) in some java application (Oracle sqlcl).
But unfortunately, objects from application NOT published to script.
For example: sqlcl published object “ctx”. When I try use this object, error appear:
_javax.script.ScriptException: value write is not a member of Object in _
The same work fine in Jython:
** return (v_pStr + " World!\n");**
How Scala can reference to object in application, if scala use as dynamic script in java application?