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.

Re: Simple DownloadFile sample

2009-06-12 Thread Bap
1) ftp enter username/password chdir get 2) scp @: . enter password 3) wget ... 101) ... Quoting siom...@portosdobrasil.gov.br: Hello all, Does anyone know a link to a simple sample for downloading files? I found some but very confusing. The code is welcome too. Thanks Siomara

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

2009-06-10 Thread Bap
one line is to quote $OPTS when it is expanded, which obviously will not work if there are any other options required in CATALINA_OPTS. exec is not included in my example, as tc 6.0.16 does not include it when it "start"s only when it "run"s. Thanks again, catalina.p

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

2009-06-10 Thread Bap
am going to have to go with Rainer's suggestion of appending to conf/catalina.properties - 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,

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 : On 10.06.2009 15:09, Bap wrote: Hi André, The solution you have suggested just introduces a new variable, but with exactly

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

2009-06-10 Thread Bap
uot;plain ssl" -Dcom.sun.jndi.ldap.connect.pool.timeout=1 Thanks for the suggestion, Bap. Quoting André Warnier : 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 sugges

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

2009-06-10 Thread Bap
ALINA_OPTS. 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. #!/bin/sh OPTS='"lkjxdf adf"' function echo_args() {

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

2009-06-09 Thread Bap
ent (main class name) I have 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 adv