Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
F Lucas
Greenhorn
Posts: 27
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.
 
Tim Moores
Saloon Keeper
Posts: 5707
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: 27
2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. This will definitely help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!