----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Are you intializing all your locally-scoped variables?
> To be on the safe side, I've set just about every
> method in the system
> to be 'synchronized'. Is that a dumb thing to do?
You should never synchronize "until desired
consistency is achieved". You should always know why
you are synchronizing. Remember when you say
"synchronize", you are implicity saying
"synchronize(this)": the entire object is getting
locked, not just the method.
>
>
> My configuration:
>
> Linux RH5.2
> Apache
> Apache JServ
> dbConnectionBroker
> mm.mysql.jdbc
> MySQL
Don't forget to commit every jdbc transaction, even
"select"s: because jdbc considers even reads can
trigger writes.
And are you using a "finally" clause to ensure you are
committing and closing your cursor?
Also, unless you are using a Type IV (pure Java)
driver, any thread that instantiates a connection
cannot pass that connection to another thread.
-Nick
=====
# Nick Bauman
# Technical Programmer
# http://webhelp.com
# real people, real answers, real time
__________________________________________________
Do You Yahoo!?
Thousands of Stores. Millions of Products. All in one place.
Yahoo! Shopping: http://shopping.yahoo.com
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]