×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    2

    Database Access through a Midlet

    Hi Folks,

    New to this whole scene but whats the best way for a MIDLET to connect to a Database and Pull Information out of it and display it on the Screen.

    Ive been reading that having a Servlet Do it and use get and put to access it. Any other Methods ?

    Regards Kevin

  2. #2
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: Database Access through a Midlet

    Hi ,
    what you need is one server application which has a capability to connect to to database ans serve your request. You can use servlet , .net or php etc..

  3. #3
    Registered User
    Join Date
    Nov 2008
    Posts
    2

    Re: Database Access through a Midlet

    Hi once the Servlet is Connected to the DB. should I be able to call the methods from within it

  4. #4
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: Database Access through a Midlet

    Hi ,
    Do you mean methods in the servlet? You can call .

  5. #5
    Regular Contributor
    Join Date
    Sep 2008
    Location
    Ahmedabad
    Posts
    254

    Re: Database Access through a Midlet

    Hi,

    Your MIDlet will be calling servlet and its methods and in turn the servlet will connect to the database and do the task which it is supposed to do. If you want to retrieve some information from the database then servlet will fetch that information and pass it to the midlet.

    It just means servlet will be acting as a mediator between midlet and database. For any communication between midlet and database servlet will be used.
    Sunil
    Mobile Application Developer

  6. #6
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: Database Access through a Midlet

    If the infomrmation which you want to fetch is on phone's memory then you have to use RMS or File Connection JSR but if you the data is on server then you will have to use the api regarding connection.

  7. #7
    Registered User
    Join Date
    Jun 2010
    Posts
    4

    Re: Database Access through a Midlet

    Quote Originally Posted by sunil_bhambani123 View Post

    Your MIDlet will be calling servlet and its methods and in turn the servlet will connect to the database and do the task which it is supposed to do. If you want to retrieve some information from the database then servlet will fetch that information and pass it to the midlet.

    It just means servlet will be acting as a mediator between midlet and database. For any communication between midlet and database servlet will be used.
    To access the database using the servlets, which API can i use.??
    Or, how can i do it??
    regards.

  8. #8
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: Database Access through a Midlet

    Quote Originally Posted by nishadh View Post
    To access the database using the servlets, which API can i use.??
    Or, how can i do it??
    regards.
    You simple need to use GCF, HttpConnection and make a network call to the servlet and pass your SQL query and get the resultset in response.
    Thanks,
    Ekta

Similar Threads

  1. Access database in MIDlet
    By siauk|a in forum Mobile Java General
    Replies: 7
    Last Post: 2008-01-02, 06:17
  2. Access denied for database in private folder
    By ronin101 in forum Symbian
    Replies: 2
    Last Post: 2007-03-30, 13:03
  3. Associating a MIDlet with an access point
    By simsiem in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2007-02-28, 03:00
  4. 技术文档:MIDP 2.0安全机制 与 MIDlet 数字签名
    By wotrust in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 0
    Last Post: 2006-12-30, 08:42
  5. Phone that allows WAP access for unsigned SMS midlet?
    By travjohn1134 in forum Mobile Java General
    Replies: 5
    Last Post: 2006-10-31, 03:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×