As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
found this article:http://peter.michaux.ca/article/3019 Appendix 2: talking with the database from the Rhino shellI make java file, put it in source, org.alfresco.mysqlconnect; I compile the code..This should work, but I don't know how to call java function with javascript in alfresco..Anybody?thanks
As of Alfresco 2.1.3, Javascript scripts stored in the classpath can also leverage the Rhino Javascript interpreter's native Java integration facilities (see the Rhino documentation for more details). For security reasons these mechanisms are completely disabled for Javascript scripts that are stored in the repository.
<import resource="classpath:alfresco/extension/test.js">