Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

database manipulation with J2ME

 
fadzizo abdullah
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all

im going to develop an application which need to communicate with a database to add, delete, update and find records that is located in a server.... is this possible with J2ME..??? if it is, so could you please give me some basic structures or maybe some web addresses that i can refer to...

Thank You
[ May 14, 2007: Message edited by: fadzizo abdullah ]
 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Addullah,

there is no fully fledged database as such...

you can use the Record Management System for your purpose
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you can see if your database vendor has a J2ME solution, or you will need to create "Web Services" to handle comm calls from the mobile device. So a Servlet as a Web Service can work for this.

Mark
 
nikunj anand
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is easy just call servlet from your midlet which takes parameter from midlet and insert into database.

for that you have to creat one servlet and make jdbc connection and fire insrt into query and takes data from midlet as parameter and stores in to local variable into servlet.

from midlet you have to make one http connection in new thread and in that url you have to pass some parameter to servlet.

if you still not get soluation that tell me.

bye
 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI..

I am sorry...

I had misunderstood the question...

Both the web service and Servlet based solutions seem to be practical...

But what attributes would be used to choose either one...

THanks in advance
 
hassan mushtaq
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can also socket programming to send data as command and from your server it accept command and manipulate data.
 
hassan mushtaq
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can also use socket programming to send data as command and from your server it accept command and manipulate data.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic