• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connecting to db from BlackBerry

 
Neeba Rebbaca
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi. I'm new to blackberry development. I want to connect to the database that is present in remote server. can anyone guide me, how to achieve this. Thanks.
 
Swastik Dey
Rancher
Posts: 1625
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think bb can directly connect to database located in a remote server. What you need is a middle ware between these two. May be a websevice/servlet. BB sends request to servlet, servlet interacts with db and sends back the response to bb.

 
Neeba Rebbaca
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. Can you provide me with a sample program. so that it will be easy for me to understand. Thank you.
 
Tim Moores
Bartender
Posts: 2895
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One would expect that the BB developer web site has examples of stuff like this.
 
Swastik Dey
Rancher
Posts: 1625
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim has already replied. However the following can be a sample work flow.

At the client (BB) end
---------------------------

However you need to make sure you call the above method in a separate thread.

Server end (Servlet)
--------------------
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic