Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to connect J2ME with mySql

 
swati mittal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 136
Android Chrome Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
swati mittal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 136
Android Chrome Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic