[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Handle-info] Batch load



Sharif Islam wrote:
Thanks.
Could this be setup  as a cron job?
java -cp handle.jar net.handle.apps.batch.GenericBatch <batchfile>
[<LogFile>]

--sharif

Amit Chaudhary wrote:
Hi Sharif,

Unfortunately Admin tool is the only way to run batch loads but you can
build your own customised services on top of handle.jar and then expose them
via an interface/browser.


We have build a similiar struts jsp batch load tool and given the users
a URL which they log in to upload the request file.

kind regards,

Amit Chaudhary.
Senior Developer,
PILIN Project, ARROW
Monash University Library
Building 4
Monash University VIC 3800 Australia
Tel : (+61 3) 9902 0344
Email : amit.chaudhary@lib.monash.edu.au

-----Original Message-----
From: handle-info-admin@cnri.reston.va.us
[mailto:handle-info-admin@cnri.reston.va.us]On Behalf Of Sharif Islam
Sent: Saturday, June 02, 2007 1:18 AM
To: handle-info@cnri.reston.va.us
Subject: [Handle-info] Batch load


Is the command line Admin tool the only way to run the batch load? We are currently running the handle server in a linux machine and we would prefer not to create a local account for the folks that are creating the handles. Is there any other way to run the batch file?


--sharif


--
Sharif Islam                 Research Programmer
Library IT                   University of Illinois Urbana-Champaign
http://www.library.uiuc.edu  phone:  (217) 244-4688




There should be no problems in setting "java -cp handle.jar net.handle.apps.batch.GenericBatch <batchfile> <LogFile> " as a cron job.
For Unix environment you can create a shell containing the above command and add the shell to your CronTable
But be cautious if you don't make it dynamic i.e. a different log file name for each batch operation it might override the previous log file.


A better option would be to create your own service which executes HANDLE API GenericBatch and put that service in the cron this way you can better control
your process and the file names. You can even give your own XML input to your in-house service which in turn will transform it to <batchfile> format before executing.


--
kind regards,

Amit Chaudhary.
Senior Developer,
PILIN Project, ARROW
Monash University Library
Building 4
Monash University VIC 3800 Australia
Tel   :  (+61 3) 9902 0344
Email :  amit.chaudhary@lib.monash.edu.au


_______________________________________________ Handle-Info mailing list Handle-Info@cnri.reston.va.us http://www.handle.net/mailman/listinfo/handle-info