开发者

When you call a java standalone application from an eclipse workbench inside a plugin, this indicates interprocess communication?

The fact that from an eclipse plu开发者_运维百科gin i invoke a swing java application from my own library we can say that this is interprocess communication since eclipse is by itself a java application running on top of a jvm and then i load into the jvm another process passing some arguments from the initial plugin workbench


I think simply passing command line arguments would normally not be called interprocess communication, though it is a really weak form of it.

Usually you would want to have at least some data passing while the programs are running, and usually in both directions. In Java, this could be done by reading the standard input/outputstreams, using Sockets (or anything based on this, like RMI), or using a shared file (Try mapping the file into memory as a ByteBuffer from both processes - though it seems to be system-dependent whether other processes see the changes). Or using system-dependent methods per JNI.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜