Re: sqlserver.jdbcdriver Thread safe?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance





Dan Rychlik wrote:

Good afternnon,

I have been developing an application in Java that will connect to multiple modems at one time, push update files, and then remotely execute the right script to perform the update into the remote database... I am curious about streamlining this process and making multiple connections to all of the databases at once for each server.

Each server has its own IP address and different logon credentials... My question is it possible to use this library to establish different database connections for each server at the same time or simply, is jdbcdriver thread safe.... I have hundreds of remote databases that I have to keep updated on a monthly basis and would like to use java threads to do each server.

I have done this job using PERL and simply remotely executing the right script after I upload the data that I need, but if jdbcdriver is thread safe then their is no need for the remote execute of scripts, I can simply update the tables that I need on the fly.

Thanks guys, Dan Rychlik

Yes it is. Watch the JDBC spec though. It doesn't give you much scope
at all for multiple threads simultaneously using a given connection or
any of it's subobjects. If you write your code to ensure that only one
thread uses any connection at one time, you should be just fine with an
application creating and using lots of connections to lots of DBMSes.
Joe Weinstein at BEA Systems

.



Relevant Pages

  • Re: free embedded databases?
    ... although that user can have multiple connections ... so you could build a server application which uses it for multiple users. ... C/S style link to a database engine. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Async and single threading sockets in SBCL
    ... I'm a lisp newbie writing a server in SBCL and I would prefer to ... > I should probably also point out that connections to the server are ... with multiple threads unless you have multiple CPUs and you know what ... So my second requirement was ``Use a single thread because I ...
    (comp.lang.lisp)
  • Re: Async and single threading sockets in SBCL
    ... > with multiple threads unless you have multiple CPUs and you know what ... > I've written single-threaded servers that support multiple connections ... I wanted to implement such a server that was free ... in particular it conses 3 new lists of that size. ...
    (comp.lang.lisp)
  • Re: How To Force Load Balancing For Incoming Traffic to One Server Through 5500 / 6500 Switches?
    ... > "load balancing" is a term that is usually applied only in the situation ... > where there are multiple servers (including multiple connections to ... > the same server). ... they actually measure throughput and make decisions about which connections ...
    (comp.dcom.sys.cisco)
  • Re: Now, another question about Xnews
    ... you're allowed several connections simultaneously to ... > your server, and each connection has a speed-cap individually, ... > newsrc)and download parts of a post in one, ... instead of opening multiple aliases (or whatever ...
    (news.software.readers)