Re: Using multiple DataSource's for fail-over.

2009-09-02 Thread Bap
Bill, If you are using Oracle RAC, then why dont you use a RAC JDBC URL that contains both nodes? A DBCP testOnBorrow will ensure only current transactions on a node will fail if one of the nodes goes down, and all new requests for connections from the pool will recover. Bap. Quoting

Re: Simple DownloadFile sample

2009-06-12 Thread Bap
1) ftp hostname enter username/password chdir directory get filename 2) scp username@hostname:path-to-file . enter password 3) wget url-to-file ... 101) ... Quoting siom...@portosdobrasil.gov.br: Hello all, Does anyone know a link to a simple sample for downloading files? I found some

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Bap
. Can anyone provide any more suggestions, or am I going to have to modify catalina.sh - I really do not want to do that, for obvious reasons. Again, thanks, in advance, for any help offered, Bap. shell_script #!/bin/sh OPTS='lkjxdf adf' function echo_args() { echo $1 echo

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Bap
-Dcom.sun.jndi.ldap.connect.pool.timeout=1 Thanks for the suggestion, Bap. Quoting André Warnier a...@ice-sa.com: Bap wrote: ... Looks very much like the problem from hell, where the number of extra quoting levels depends on the number of times this thing ends up being interpolated. A suggestion, which

Re: setenv.sh - how to set system properties to values containingspaces

2009-06-10 Thread Bap
Thank you, Unfortunately I think I will have to go with this suggestion, setenv.sh does not look like it will bear fruit. Thanks again, Bap. Quoting Rainer Jung rainer.j...@kippdata.de: On 10.06.2009 15:09, Bap wrote: Hi André, The solution you have suggested just introduces a new

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Bap
- not very nice, but should work. Thanks for all your help, Bap. As far as system properties go - why does Sun insist on using them for configuration, with no alternatives for configuration within a given scope, not jvm wide? Quoting André Warnier a...@ice-sa.com: Sorry, I mistook

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Bap
, catalina.properties it is. Bap. Adding to what André explains: the following small script shows a working procedure: #!/usr/bin/ksh OPTS=-DXXX=a b # or alternatively # OPTS=-DXXX=a b exec /usr/local/jdk1.6.0/bin/java $OPTS myprog What is important here: - the original variable including the system

setenv.sh - how to set system properties to values containing spaces

2009-06-09 Thread Bap
experimented with many options and searched the web for help with this, but, I cannot find anything. Can anybody help with the correct format for CATALINA_OPTS in setenv.sh when setting a system property to a value which contains a space? Thanks in advance, Bap. The complete contents