Getting data from an program written in C# into a Java program -


i have program written in c# receives data third party server , processes series of integers (they streaming rapidly). program written in c# because third party provides classes process data, offers them in c#. take these integers , use them in streaming way in java program (so streamed , processed c# program, use integers in java program). second program in java because third party offers classes (which required) in java. guess either-

  1. look program runs c# classes in java, , include c# classes process incoming data directly java program [this doesn't seem promising - can't seem jni4net, suggested in other posts, work]

or

  1. write program in c# saves particular memory location integers being processed. compile program. run executable within java source code , have sort of callback written in java code picks when integers @ specific memory locations changed , record these new numbers [not sure how start on this!]

does have suggestions might least painful approach?

it sounds want form of inter-process communication mechanism.

as such, allowing communication employed:

  1. named pipes
  2. sockets
  3. tcp connection
  4. shared memory

out of options recommend named pipes they're simplest grasp , have no problems ports not being available etc.

see: how open windows named pipe java?

and: using named pipes ipc in c#

this post: using named pipes communicate between c# , java describes , end-to-end means of using pipes both environments.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -