hello,, i have a multithread application.. my application connects to the database
can i open 2 connection at the same time? or can i thread the connection also. thanks in advance.

Two connections to two different databases or the same data base?

If you are accessing the database, then are you accessing the same table?

-with JDBC anyway, once you create the connection, it will keep connected. You just want to create the connection ONCE to that database, and push commands/queries to it. (re-connections use a lot of bandwidth)

-if you are connecting to a single database, try:

create connection then start threads 1 and 2.

Hope this is of any help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.