JDBC support on J2ME

流过昼夜 提交于 2019-12-02 06:33:47

There is no official JDBC support for CLDC-based environments. There is a JDBC optional package for CDC-based environments.

Database support for CLDC/MIDP is very sketchy. I see there's one here:

http://developer.mimer.com/platforms/productinfo_19.htm

but that's probably not what you want.

I think what you'll have to do is roll your own web service based system where you interact with Java code running in a web server, acting as your proxy for JDBC communication to the database.

I don't know how to use DriverManager in either configuration.

If you want to use JDBC without too much work, you can switch to DataSource to get your connections. (Using the JSR169 jar).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!