Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #11734
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Jan Burse <janburse@fastmail.fm> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Interplatform (interprocess, interlanguage) communication |
| Date | Sat, 04 Feb 2012 13:57:34 +0100 |
| Organization | albasani.net |
| Lines | 66 |
| Message-ID | <jgj9vu$jmr$1@news.albasani.net> (permalink) |
| References | <IPC-20120203200443@ram.dialup.fu-berlin.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.albasani.net T64BcNo5UMhGPxtw2s9xmKKrBaCjSMYVM5FXp0W+uqBr7+jPsupdr55WoF0NL0HbKd3KhhrKvTCc2ywcURyB5ShzYc+15RdDtvY05urgOgg7S9XcBQ78b+Mity5ddZFP |
| NNTP-Posting-Date | Sat, 4 Feb 2012 12:57:34 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="ngLnimfbKz2OsJzFVqM4d+YDTf99cg3sbUdSs1rLnIidhcZxbtVc4Tu1Q5DXmm1py8u01pfDTiW+VcBbCjtqKKVpfkfeuq5Q1dt9WrGvg1auLrbmH8UoGyFtJD7PL2FZ"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0) Gecko/20120129 Firefox/10.0 SeaMonkey/2.7 |
| In-Reply-To | <IPC-20120203200443@ram.dialup.fu-berlin.de> |
| Cancel-Lock | sha1:EppDgcGA46PjM8BH/tUwRlOtruw= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11734 |
Show key headers only | View raw
I would add to the list: Shared Memory Stefan Ram schrieb: > »X« below is another language than Java, for example, > VBA, C#, or C. > > When an X process and a Java process have to exchange > information on the same computer, what possibilites are > there? The Java process should act as a client, sending > commands to the X process and also wants to read answers > from the X process. So, the X process is a kind of server. > > My criteria are: reliability and it should not be extremely > slow (say exchanging a string should not take more than > about 10 ms). The main criterion is reliability. > > »Reliability« means little risk of creating problems, little > risk of failure at run-time. (It might help when the client > [=Java process] can reset the communication to a known and > sane start state in case of problems detected at run-time.) > > The host OS is Windows, but a portable solution won't hurt. > > A list of possibilities I am aware of now: > > Pipes > > I have no experience with this. I heard one can establish > a new process »proc« with »exec« and then use > > BufferedWriter out = new BufferedWriter(new > OutputStreamWriter(proc.getOutputStream())); > BufferedReader in = new BufferedReader(new > InputStreamReader(proc.getInputStream())); > > Files > > One process writes to the end of a file, the other reads > from the end of the file? - I never tried this, don't know > if it is guaranteed to work that one process can detect and > read, whether the other has just appended something to a file. > > What if the processes run very long and the files get too > large? But OTOH this is very transparent, which makes it easy > to debug, since one can open the files and directly inspect > them, or even append commands manually with »copy con file«. > > Sockets > > This is slightly less transparent than files, but has the > advantage that it becomes very easy to have the two > processes running on different computers later, if this > should ever be required. Debugging should be possible > by a man-in-the-middle proxy that prints all information > it sees or by connecting to the server with a terminal. > > JNI > > JNI might be used to access code written in C or > ABI-compatible languages. This should be fast, but I heard > that it is error prone to write JNI code and needs some > learning (code less maintainable)? >
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Interplatform (interprocess, interlanguage) communication Jan Burse <janburse@fastmail.fm> - 2012-02-04 13:57 +0100
Re: Interplatform (interprocess, interlanguage) communication markspace <-@.> - 2012-02-04 10:55 -0800
Re: Interplatform (interprocess, interlanguage) communication Jan Burse <janburse@fastmail.fm> - 2012-02-04 20:24 +0100
Re: Interplatform (interprocess, interlanguage) communication Jan Burse <janburse@fastmail.fm> - 2012-02-04 20:29 +0100
Re: Interplatform (interprocess, interlanguage) communication Arne Vajhøj <arne@vajhoej.dk> - 2012-02-04 18:37 -0500
csiph-web