Skip to Content
author's profile photo Former Member
Former Member

MI Client & database connectivity

Hi,

I'm developing an MI based demo application and want to connect to database db2 on the mobile device. In the cilent APIs I could not find anything where I can specify the database or option for using serialization for that matter. Has anybody tried to connect with database? Please guide.

Regards,

Ravi Sharma

HCL Technologies

SAP Netweaver COE

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 11, 2005 at 03:16 PM

    You can't do it from the API.

    MobileInfrastructure (former MobileEngine) is a <i>framework</i> used for <b>connecting to</b> and <b>extracting data from</b> R/3 backend. There are just two ways to do it - Generic Sync or Smart Sync.

    If you want to do direct database connection, you have to use the Java Platform features, JDBC or what driver you have on the mobile device. Howsoever, this is little wrongly.

    Just curious, what for mobile device you bear in mind? SAPDB and MobileEngine are not designed for PocketPC. 😊)

    Anyway, this is a funny problem, please share your experience about it, when you establish the connection.

    Good luck,

    Todor

    Add a comment
    10|10000 characters needed characters exceeded

    • It's true - you may keep your data in whatever format you want - persistance api, text files, serialized form, windows registry, database... it's up to you.

      The Persistance API is an easy-to-use framework specific functionality, and I prefer it.

      If you want to use database, you should use it manually as in each usual java application:

      1) Load the JDBC driver

      2) Establish the connection to the database

      and later you create Statements by this connection.

      Regards,

      Todor

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.