Connecting to DB2 database
I am trying to connect to DB2 UDB 8.2 database with a mobile device (Symbol MC70).
Are there any other ways connecting to the database (compatible with mobile devices) except using DriverManager class(which is not supported by all kinds of mobile java platforms) and DataSource class (which for some reason doesn't work)? Do I have to include some kind of special jar file in my project, that would allow me to connect to DB2 database?
Datasource Example (not working):
//DB2DataSource db2Source = new DB2DataSource();
DB2SimpleDataSource db2Source = new DB2SimpleDataSource();
Connection conn = db2Source.getConnection();
Errorrs in the Websphere device developer 5.6:
The project was not built since its classpath is incomplete. Cannot find the class file for javax.naming.Referenceable. Fix the classpath then try rebuilding this project.