Menu

[MySQL5] Access problem from datasource

Help
Premier
2007-05-23
2013-04-25
  • Premier

    Premier - 2007-05-23

    Hello,
    what i must configure to use a datasource?

    Must i add "public Connection openConnection()" method in Manager.java to use managers class?

    Can you give me some example to use this tools? (i intend a little program in java).

    Help me please.
    Bye

     
    • Charl van Jaarsveldt

      Hi,

      There is a pretty good example included in sql2java. It shows how to set up the Manager - get the connection up and running, as well as how to use all the different bean managers to load, save and delete stuff.

      To set up the connection to the database, call the setJdbcPassword/Username/Url/Driver methods, or if you have an existing DataSource set up, you can call setDatasource to use that datasource.

      Regards,
      Charl

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.