• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 58
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7582
176
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ranch Hand
Posts: 58
2
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. This will definitely help.
 
reply
    Bookmark Topic Watch Topic
  • New Topic