Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MySQL database connection using DataSource + Context or Initial Context  RSS feed

 
Constantinos Grevenitis
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I would like a descent example of connecting to a mysql database using DataSource and Context or InitialContext. I don't which one is better. The database name is Kamelot, the table's name is album. It's a localhost connection. Thank you very much.
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe the following link would be of some help


Managing & Using MySQL with
Java
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!