This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes MySQL database connection using DataSource + Context or Initial Context Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "MySQL database connection using DataSource + Context or Initial Context" Watch "MySQL database connection using DataSource + Context or Initial Context" New topic
Author

MySQL database connection using DataSource + Context or Initial Context

Constantinos Grevenitis
Ranch Hand

Joined: Nov 29, 2006
Posts: 31
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

Joined: Dec 28, 2006
Posts: 893
Maybe the following link would be of some help


Managing & Using MySQL with Java


Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: MySQL database connection using DataSource + Context or Initial Context
 
Similar Threads
Connection String
Unable to load database schema in Jboss Dev Seam Project
Creating Datasource
Tomcat-MySql Connection pooling
Configuring MYSQL Datasource