I'm not sure either, but you could try it in a sync block and see if it
works and let us know ;-) I use mySQL, and this is an issue I will
tangle with too...so let the list know what works for you. 
        You might also want to look at some scheduling software like
quartz http://www.opensymphony.com/quartz/ you can set it up to schedule
jobs at any time, recurring and likewise.

Tom Kochanowicz


-----Original Message-----
From: Ben Souther [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 19, 2004 9:28 AM
To: Tomcat Users List
Subject: Re: Database backups initiated from Tomcat

I'm not sure if getRuntime().exec(String cmdline) is synchronous or not.
Also I don't know if mySql makes any provisions for locking a table
during a 
dump.

Those are the questions I would want answered before going ahead. 


On Wednesday 19 May 2004 10:15 am, Frank Burns wrote:
> So you think running Runtime.getRuntime().exec(String cmdline) from
within
> a Servlet is viable?
>
>
> Can you think of any potential issues with using this solution?
>
>
> I'm just trying fathom, as quickly as possible, whether there are any
"show
> stoppers" in taking this route.

-- 
Ben Souther


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to