[OT] Replication (was RE: Copying large files around)

2007-10-15 Thread Peter Crowther
[Marked off-topic as this has, indeed, come a long long way from the original question] From: Johnny Kewl [mailto:[EMAIL PROTECTED] but yes if the user could consider replication and the required dB design, much better than moving GB files around. Not always. For example, replication has

Re: [OT] Replication (was RE: Copying large files around)

2007-10-15 Thread Johnny Kewl
[EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, October 15, 2007 11:38 AM Subject: [OT] Replication (was RE: Copying large files around) [Marked off-topic as this has, indeed, come a long long way from the original question] From: Johnny Kewl [mailto:[EMAIL

Re: Copying large files around

2007-10-15 Thread Mark H. Wood
On Sat, Oct 13, 2007 at 11:02:59AM -0400, Jim Cox wrote: On 10/13/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Let me give a bit more detail: I am working on a utility function in my webapp that will

Re: Copying large files around

2007-10-15 Thread Mark H. Wood
On Sat, Oct 13, 2007 at 12:41:45PM +0200, Johnny Kewl wrote: OK... now if you on a LAN... thats cool, but for the internet this is not good enough... If you have a look at something like the Opera browser's file transfer it does some cool things, like if you shut down the machine, next time

Re: Copying large files around

2007-10-14 Thread Pid
- From: David Kerber [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, October 14, 2007 2:56 AM Subject: Re: Copying large files around If it Postgresql you using, a while a go I wrote a replication system for Postgres, and its a TC servlet. So what you could

Re: Copying large files around

2007-10-14 Thread David Kerber
Message - From: David Kerber [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, October 14, 2007 2:56 AM Subject: Re: Copying large files around If it Postgresql you using, a while a go I wrote a replication system for Postgres, and its a TC servlet. So what you could

Re: Copying large files around

2007-10-14 Thread Johnny Kewl
[EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, October 14, 2007 9:49 PM Subject: Re: Copying large files around Pid wrote: Johnny Kewl wrote: --- HARBOR: http://coolharbor.100free.com

Re: Copying large files around

2007-10-13 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: David Kerber

Re: Copying large files around

2007-10-13 Thread Johnny Kewl
[EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; [EMAIL PROTECTED] Sent: Saturday, October 13, 2007 12:41 PM Subject: Re: Copying large files around --- HARBOR: http://coolharbor.100free.com/index.htm Now

Re: Copying large files around

2007-10-13 Thread Johnny Kewl
[EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, October 13, 2007 1:11 PM Subject: Re: Copying large files around --- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool

Re: Copying large files around

2007-10-13 Thread Pid
David Kerber wrote: What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large byte[] array? Or what? I think that the NIO apis were

Re: Copying large files around

2007-10-13 Thread David Kerber
Pid wrote: David Kerber wrote: What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large byte[] array? Or what? I think that

Re: Copying large files around

2007-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Let me give a bit more detail: I am working on a utility function in my webapp that will periodically copy the database file from the db server to a backup server on the LAN. Uh cron and cp, anyone? You can even

Re: Copying large files around

2007-10-13 Thread Jim Cox
On 10/13/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Let me give a bit more detail: I am working on a utility function in my webapp that will periodically copy the database file from the db server to a

Re: Copying large files around

2007-10-13 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Let me give a bit more detail: I am working on a utility function in my webapp that will periodically copy the database file from the db server to a backup server on the LAN. Uh

Re: Copying large files around

2007-10-13 Thread PTS
it every night before the tape backup ran. AT is a lot lighter than Scheduler so using it is preferable. Doug - Original Message - From: David Kerber [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, October 13, 2007 11:29 AM Subject: Re: Copying large files

Re: Copying large files around

2007-10-13 Thread Johnny Kewl
[EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, October 13, 2007 5:29 PM Subject: Re: Copying large files around Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Let me give a bit more detail: I am working

Re: Copying large files around

2007-10-13 Thread Pid
David Kerber wrote: Pid wrote: David Kerber wrote: What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large byte[] array? Or what?

Re: Copying large files around

2007-10-13 Thread Martin Gainty
PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, October 13, 2007 11:29 AM Subject: Re: Copying large files around Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Let me give a bit more detail: I am working

Re: Copying large files around

2007-10-13 Thread David Kerber
Pid wrote: David Kerber wrote: Pid wrote: David Kerber wrote: What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large

Re: Copying large files around

2007-10-13 Thread David Kerber
Martin Gainty wrote: Sadly no cron (and sadly no .htaccess file available either) wrap the java %java_opts% -cp %classpath% classname in either a cmd or .bat On a 7 year old wintel box the application is called Task Scheduler where you want to select that cmd/bat Be sure to set sufficient

Re: Copying large files around

2007-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Does Windows 2003 server have a version of cron? Yes, it's called the Microsoft Task Scheduler. I've never used it. :( And building it into my webapp lets all the configuration be done from the same interface..

RE: Copying large files around

2007-10-13 Thread Peter Crowther
From: David Kerber [mailto:[EMAIL PROTECTED] What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large byte[] array? Or what? If

Re: Copying large files around

2007-10-13 Thread Bill Barker
Seconding Peter's comments: It is extremely unlikely that you can beat the Windows tools for this sort of thing (been there, done that). Also, if your webapp isn't physically on one or the other boxes (as Peter said, preferably the reciever), then you are pretty much guaranteed to lose. That

Re: Copying large files around

2007-10-13 Thread David Kerber
Peter Crowther wrote: From: David Kerber [mailto:[EMAIL PROTECTED] What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large byte[]

Re: Copying large files around

2007-10-13 Thread Johnny Kewl
[EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, October 14, 2007 2:56 AM Subject: Re: Copying large files around If it Postgresql you using, a while a go I wrote a replication system for Postgres, and its a TC servlet. So what you could to is make a real time back up