Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GenericJDBCException: Cannot open connection

 
Sham Phadtale
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am updating MySQL database from Swing Client and jboss-5.1.0.GA as a server. The bean which I want to update is EJB3 enity bean.
While updating i am getting following exception. When I update less no of rows I did not get it, but if no of rows increase I get this exception. Please anyone have any clue about how to get rid this exception.
I am sorry as I dont know which tag should use to copy stack trace, I am using code tag..
 
Ifteqar Ahmed
Ranch Hand
Posts: 85
Java Linux MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

There is some hard limit on the database server about the maximum number of concurrent connections. You've reaching this limit, when you try and get another connection it fails.

Please check your Configuration File (Ex - mysql-ds.xml) file for the maximum and Minimum number of Concurrent Connections to the Database.



 
Sham Phadtale
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want to say pool size? Following is my *-ds.xml file.


Do I need to add some annotations like TransactionType(?) to my code which is updating database? What should I do to fix the issue?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic