Service Communication Issues.

  • Thread starter Thread starter GrainFed
  • Start date Start date
G

GrainFed

Hey all.
Help!!

I am trying to create a windows service that will have an
array of data that can be accessed at any given time, as
well as have a stream of data from it.

My question is: How would I go about sharing an array
accross two separate programs with out using tcp. Is tcp
ideal? Would a message queue be ideal for streaming data?
I can't just send the reference of the array to the
program, could I?

(I think I got a little too use to assembly on
microprocessors where one could do anything.)

thanks for all help.
 
The absolute simplest way of doing this with .NET is to use remoting.
Remoting doesn't have to be cross-machine; it can mean simply cross-process
(or app domain). If you create a type on a service that supports remoting
then a simple tweak to the .config file of your other apps will create the
object via the transport transparently.

I'd suggest getting one of the excellent .NET remoting books, like Ingo
Rammer's. They all include code to get you started.
 
Back
Top