Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC Connection Pooling error

 
jite eghagha
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I set up my connection pool as described in netbeans doc.

Then i tried to use, (in my own fashion) the Technics described in javaranch journal


But i get an error from the lines below :: javax.naming.NameNotFoundException: No object bound to name java:comp/env/jdbc/gameDataSource








I'd appreciate some help with that error.

I'm trying to read articles and documentation on InitialContext and Context, but so far everything I've found is rather "verbose"!


 
jite eghagha
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the cause of the error ;

I had to include this couple of lines in my web.xml file:



however, these lines are deleted when ever i build my application! But for now the error fixed
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which application server you are using? If any then check the documentation of that to see how to set up connection pooling.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic