aspose file tools*
The moose likes Java Micro Edition and the fly likes How to connect J2ME with mySql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How to connect J2ME with mySql" Watch "How to connect J2ME with mySql" New topic
Author

How to connect J2ME with mySql

swati mittal
Ranch Hand

Joined: Oct 21, 2008
Posts: 39
I am working on application where i need to connect J2ME with mySql database.
How to make this connectivity.
Please let me know ASAP.

thanks in advance []
Pratik Goswami
Ranch Hand

Joined: Mar 02, 2009
Posts: 136

Hi,

AFAIK you can't connect MySQL database from J2ME directly. You can pass data to a servlet over server and from that servlet you can handle database operation.
Please let me know if you get success to connect it directly.

Thanks & Regards
Pratik Goswami.


iOS * Android Developer
swati mittal
Ranch Hand

Joined: Oct 21, 2008
Posts: 39
I am new for J2ME so please tell me how we will connect using servlet.
can you send me the sample code or relevant link.
Pratik Goswami
Ranch Hand

Joined: Mar 02, 2009
Posts: 136

Hi,

I don't have relevant link right now, but you have to make a Http connection and have to pass parameters with connection. On server side simply get parameter from request.

reference -
one
two
third

best luck

Thanks & Regards
Pratik Goswami
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to connect J2ME with mySql