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-
- 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
- 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:
- named pipes
- sockets
- tcp connection
- 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
Post a Comment