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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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