communicating with other app

  • Thread starter Thread starter Sput
  • Start date Start date
S

Sput

Is there a simple way of communication between applications
I would need to send or receive some data from time to time?
 
Sput said:
Is there a simple way of communication between applications
I would need to send or receive some data from time to time?

you may want to consider creating a web-service on each end to
communicate. although not as fast as remoting ...

Vince
 
You can add socket-based communication (TCP/UDP) to the list, as well as
message queuing.

One way to choose the "appropriate" mechanism is to look at the platform(s)
both applications will be running on (both .NET CLR, .NET and Java, etc.),
and the bandwidth that will be available (both in memory on the same
machine, LAN, Internet, WAN, etc.). These two facets will narrow down your
choices. For instance, if both applications are .NET apps running on the
same computer or your LAN, most literature will say Remoting or Web Services
are your best bet (Remoting being the more performant). If the applications
are connected on different platforms where a firewall might sit between
them, exposing the applications via web services becomes the best strategy.
Plain vanilla sockets might be your best bet if both applications are
connected by a very low bandwidth pipe, as SOAP messages can be much larger
than a binary or character-based protocol you develop for your needs.

Hope this helps.
 
Another way, appropriate for apps running on the same machine, is the
SendMessage API and WM_SETTEXT Windows Message.

Dale
 
Back
Top