• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Cannot find guides on how to use datasources to connect to mysql. Need help

 
Greenhorn
Posts: 22
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. I am trying to learn how to use DataSources, but I cannot understand the oracle tutorial because it does not use vendor specific datasources (such as connector/J, which im using.)  
I tried searching in many ways, but it keeps showing me how to connect via context.  
I need help understanding what to do after making an instance of it.
Here is the only part I succeeded in making without producing any errors.

....Not much.
I also took a look at the official documentation, and it tells me the url syntax but no ways of using it.
Any help would be appreciated.
 
Saloon Keeper
Posts: 5579
144
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Searching for "datasource tutorial mysql java" finds http://zetcode.com/db/mysqljava/, which talks about data sources (if you scroll down far enough :-) and has code for that.
 
F Lucas
Greenhorn
Posts: 22
2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. This will definitely help.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!