0

I am developing an Android client to connect to a database (in my case MySQL server). The nice approach is using a Web Serive between them.

I found some nice reason for it here : Best way to access a remote database: via webservice or direct DB-access?

Elad wrote nice reasons such as complexity and security around this approach. Can you give me some new advice around these approaches and let me know about the source of your ideas, since Elad did not provide any source.

Community
  • 1
  • 1
Ali
  • 9,800
  • 19
  • 72
  • 152

1 Answers1

1

The simplest reason is that a JDBC connection needs to be stable. And mobile connections are not stable enough. Thus using an intermediate web service is a good option. Providing a rest service around some database will provide you with a secure, stable, standard way to access your data.

Snicolas
  • 37,840
  • 15
  • 114
  • 173
  • Yes, you are right @Snicolas can you provide me some official web site or papers in the web about your approach ? – Ali Apr 26 '12 at 20:02
  • 1
    this page ? :) or the one you metionned. I wouldn't say that science papers are useless in computer science. Not all, but they are concerned with theoretical problems of a different kind. Here you can find the cream of the java/android community sharing its experience on how to make programs working. That's quite a reference – Snicolas Apr 26 '12 at 20:04