Results 1 to 3 of 3
  1. #1
    Ed
    Ed is offline Senior Member
    Join Date
    Jun 2007
    Posts
    110
    Rep Power
    0

    Default 2 threads sharing a data base connection

    Is a bad practice to access simultaneously to a data base with 2 threads through the same connection?
    What Consequences does it have?
    thanks

  2. #2
    Jack is offline Senior Member
    Join Date
    Jun 2007
    Posts
    130
    Rep Power
    0

    Default

    Hi ed,
    you can do that but it is necessary that executes transactions for security
    ;)

  3. #3
    Peter is offline Senior Member
    Join Date
    Jun 2007
    Posts
    119
    Rep Power
    0

    Default

    yes you can!
    I give you a blog that talks about everything about threads
    Java

Similar Threads

  1. sharing of data between sites
    By jyovasinedu in forum Advanced Java
    Replies: 1
    Last Post: 11-02-2007, 09:56 AM
  2. Problems with Jtable connected to data base
    By elizabeth in forum AWT / Swing
    Replies: 2
    Last Post: 08-07-2007, 05:24 PM
  3. Replies: 1
    Last Post: 08-06-2007, 06:38 PM
  4. Connection to data base
    By Daniel in forum JDBC
    Replies: 2
    Last Post: 06-07-2007, 05:55 AM
  5. Data Source :How to get connection inside java
    By peiceonly in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 04-02-2007, 11:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •