Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TNS:no appropriate service handler found

 
Ankita Jha
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Ranchers,
Error



I get this error when i try to insert 63 records simultaneously.
After inserting 15 records it throws the above exception.While inserting record it is using BasicDataSource connection factory.

My Question is :Whether BasicDataSource creates a new connection for each insert or it uses the same connection.

In hibernate we have SingleConnectionDataSource which uses the same connection for inserting all 63 record.

I wanted to know whether same kind of factory is available in dbcp.
Please let me know.It's urgent.

Thnks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic