Hopbot log for 2009-10-31 - Helma IRC channel: #helma on irc.freenode.net

2009-10-31:

[9:55] <emilis_info> How do you run cronjobs for Helma NG scripts from the server? (I don't want to expose them via a public URL)
[9:57] <simono> emilis_info, how do you mean? you could create a seperate cron_actions.js which is not visible to the webapp and holds functions invoked by cronjob
[9:57] <simono> cron_actions.js is then probably a bad name
[9:57] <emilis_info> yes, but how do I call the functions from inside the server cron?
[9:58] <emilis_info> I mean OS, not Helma server
[9:58] <emilis_info> :)
[9:58] <simono> helma-ng/bin/helma cronstuff.js and cronstuff.js should invoke itself..
[9:58] <emilis_info> or should I implement or use cron somehow from inside Helma?
[9:58] <simono> ng doesn't have cron-facitlies afaik
[9:59] <emilis_info> hmm
[9:59] <emilis_info> but that would create another instance of Helma server?
[10:00] <simono> "server" .. well it would invoke a new rhino and everything but not a webapp
[10:01] <simono> checkout apps/demo/main.js .. you just don't invoke helma.webapp.start() but your cron functions if require.main...
[10:02] <emilis_info> hmm
[10:02] <emilis_info> thanks
[13:19] <emilis_info> what does addToClasspath() do? I thought I could add JAR files to a running Helma NG instance dynamicly...
[13:19] <emilis_info> but java.sql.DriverManager fails to use MySQL driver this way
[13:27] <simono> emilis_info, does it work if you put the jar into helma-ng/lib ?
[13:27] <emilis_info> simono, yes it works
[13:29] <emilis_info> but I would like to package my app with all JARs into one directory
[13:50] <simono> ok.. hm.. i once had a problem like that because the jar in wanted to added wasn't in the module search path
[13:51] <simono> like i was trying to add /usr/local/java/junit.jar that won't work unless /usr/local/java is ... *looking it up*
[13:53] <simono> ah require.paths .. as i understand it the jar must be within those, than it can be added to classpath
[13:53] <simono> emilis_info, ^^ maybe thats it

 

 

In the channel now:

Logs by date: