cancel
Showing results for 
Search instead for 
Did you mean: 

MI Client & database connectivity

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Todor

basically I'm talking about the client part.

If you see the MI client architcture it talks about the client side database. MI Client comes with persistence APIs as well.

Generic Sync and Smart sync are the ways to connect to R/3 systems, that's very right.But, what I'm interested in is, For the smart or generic sync we have to have some information which is available locally on the client. Where do we keep that information on client side? It must be stored either using some database or serialization or some other format which mobile device understands. So if I want to use a database to store that information, how can I do that?.

Thx,

Ravi

Former Member
0 Kudos

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