How to connect to any database using J2ME? [duplicate]
Possible Duplicate:
JDBC support on J2ME
I am not getting it. Can any one help me?
Probably what you are trying to do is accessing a remote database from your Mobile device (j2me) using JDBC or similar tool.
Unfortunately, if you use CLDC then there is no tool for connecting to database using JDBC like tool, you need to do it manually i.e you need to send customized data like username, password from the MIDlet to Servlet and then the servlet deals with the database. Here is a sample
It is not necessary to use Servlet (i.e Java) in server side, you can use any other server-side language like PHP etc.
精彩评论