From: Loren C. <lor...@gm...> - 2011-03-02 17:13:30
|
The following test UserJavaJob is not storing the created document in /db/foo.xml. It is called by the following: xquery version "1.0"; declare namespace scheduler="http://exist-db.org/xquery/scheduler"; let $login := xmldb:login("/db", "admin", "", true()) let $success := scheduler:schedule-java-periodic-job("org.exist.scheduler.job.test.TestUserJavaJob", 120000, "test", <parameters> <param name="xmlrpcurl" value="xmldb:exist://localhost:8080/exist/xmlrpc"/> </parameters>, 100, 0) return $success This does create the document /db/foo.xml as <test/>, but the document is not visible or accessible. I am getting the System Subject so that I can get the DBBroker as something other than guest. I do not want this job being passed a username and password, because then that is in the code and if a password changes, then the code needs to be changed. Can someone take a look at this code and let me know what is wrong? Thanks, Loren |