4

I have a desktop and web application connected to same database. Which is the most preferred method to make them communicate with each other?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Sreekumar P
  • 5,900
  • 11
  • 57
  • 82
  • 2
    Why do they need to communicate with each other? If each one ensures that their database transactions are atomic and that they are always using locks properly, there should be no problem at all with both apps accessing the same database with no communication necessary. – Flipster Dec 14 '10 at 06:14
  • 4
    What exactly are you trying to accomplish? Are you trying to make sure both apps follow the same business rules? Are you trying to automate a browser session? maybe you want a web application to fire up a desktop application? – Conrad Frix Dec 14 '10 at 06:17

1 Answers1

4

You should use SOA and then both your desktop app and web app should communicate with the Service.

And the Service will be responsible for communicating with the database.

Zain Shaikh
  • 6,013
  • 6
  • 41
  • 66