How to connect with MySQL database using J2ME?
Asked
Active
Viewed 1,734 times
2 Answers
3
You can't have MySql DB on phone, so at j2me level either you can
- Use RMS (Record management system)
- Use webservices to transfer data to server where you can use MySql in backend
-
can you send me any tutorial on RMS and i guess in second one we have to connect with servlet – Rana Anees Feb 01 '12 at 11:56
2
yes, you can do it in Java ME, But in Mobile phone you can not directly connect to MySql or any other external Database. To connect with MySql Database you need to make request to web service for same. That means you need to create one web service which will make database connectivity for you. After Creating this Web Service, you need call this web service from Java ME Code.
for calling web service, please check Jigar Joshi's answer here. you can also check here.