aspose file tools*
The moose likes BlackBerry and the fly likes Connecting to db from BlackBerry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » BlackBerry
Bookmark "Connecting to db from BlackBerry" Watch "Connecting to db from BlackBerry" New topic
Author

Connecting to db from BlackBerry

Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 159
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

Joined: Jan 08, 2009
Posts: 1477
    
    6

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.


Swastik
Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 159
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
One would expect that the BB developer web site has examples of stuff like this.
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1477
    
    6

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)
--------------------
 
 
subject: Connecting to db from BlackBerry