From: Dmitriy S. <sha...@gm...> - 2011-03-03 05:46:40
|
info = collection.validateXMLResource(txn, broker, docURI, document); and collection.store(txn, broker, info, document, false); must be as close as possible to each other. what logs do you have around this execution? On Wed, Mar 2, 2011 at 10:13 PM, Loren Cahlander <lor...@gm...>wrote: > 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 > > > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Exist-development mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-development > > -- Dmitriy Shabanov |