[J2ME] Connect to Database

How to connect Sqlserver Database microediton with J2ME

Page 1 of 1

4 Replies - 16863 Views - Last Post: 04 November 2010 - 12:13 AM

#1 nitinverma274  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 17-May 10

[J2ME] Connect to Database

Posted 17 May 2010 - 05:20 AM

Dear sir, I want to connect Mobile Applecation in J2ME with the Sql server Micro Edition. How this is performed. Plz tell me Step by stem. and How to save record in database of a Mobile Application in J2ME.

This post has been edited by macosxnerd101: 17 May 2010 - 05:57 AM

Is This A Good Question/Topic? 0
  • +

Replies To: [J2ME] Connect to Database

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10647
  • View blog
  • Posts: 39,542
  • Joined: 27-December 08

Re: [J2ME] Connect to Database

Posted 17 May 2010 - 05:56 AM

Topic renamed to be more descriptive and moved to Mobile Development.

An easy way would be to use HttpConnection to post the data to a server, then have the server handle the database interactions.
Was This Post Helpful? 0
  • +
  • -

#3 littlebro  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 27
  • Joined: 29-December 09

Re: [J2ME] Connect to Database

Posted 28 June 2010 - 02:22 AM

i agree with macosxnerd101,. the easy way would be use HttpConnection,..
maybe this link will help you :
DataBase Connection Using J2ME
MIDP Network Programming using HTTP and the Connection Framework
Was This Post Helpful? 0
  • +
  • -

#4 Guest_Vijay Siripuram*


Reputation:

Re: [J2ME] Connect to Database

Posted 03 November 2010 - 11:48 PM

View Postnitinverma274, on 17 May 2010 - 04:20 AM, said:

Dear sir, I want to connect Mobile Applecation in J2ME with the Sql server Micro Edition. How this is performed. Plz tell me Step by stem. and How to save record in database of a Mobile Application in J2ME.


Hello.
There are no classes to connect Database via J2ME. You have to use Web Application between J2ME and Database.
Through the Web application you make sqlconnection and retrieve data and pass that values to the J2ME application. read that data in J2ME application. is simple words we mediator to interact J2ME and Database Connectivity.
Was This Post Helpful? 0

#5 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 810
  • View blog
  • Posts: 2,405
  • Joined: 20-March 10

Re: [J2ME] Connect to Database

Posted 04 November 2010 - 12:13 AM

HttpConnection would certainly be a good idea.

but also you should know about RecordStore which is implemented
in javax.microedition.rms package.

RecordStores allow you to store records locally on a mobile device.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1