• Post Reply Bookmark Topic Watch Topic
  • New Topic

Remote DB for storing Landmark details  RSS feed

 
pallavi utukuri
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hii
i am developing a project using j2me that
i)retrieves the current location of the device
ii) calculates distance beteen current location and any two locations entered by the user
ii}shows the nearest restaurents(or whatever) from the curent location.

am using jsr179; location api for this purpose, everything is working fine am getting results positively; am using RMS to store Landmark details, but eventually i would want to update my database and its size may increase so RMS doesnt look like feasable soultion... so i need to access remote database....which am not sure how to do...i read many posts on it but nothing is clear...so plz help
 
pallavi utukuri
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well problem solved.....Thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what was your solution?

Mark
 
pallavi utukuri
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well solution is to access the database from a servlet ......used simple tomcat server.....oracle database...and midlet sends request to servlet (used my IP address instead of localhost) and the servlet connects to the database....
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly. That is the best way for a Device to get Database information, access to app server stuff. It is making the Servlet a Web Service for the Cell Phone. The toughest think is that the message is always a byte array.

Mark
 
pallavi utukuri
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yaa thats true.....but as i need just to send and receive couple of fields to access database ....soo its quite simple code to make the job done
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!