开发者

Communicating between Adobe Air or browser and Java Web Start

开发者 https://www.devze.com 2022-12-10 23:49 出处:网络
We\'re designing an application and the client has requested that a portion of their app stay in Java Web Start and another portion be in a browser.I\'m thinking about AIR as an alternative to the bro

We're designing an application and the client has requested that a portion of their app stay in Java Web Start and another portion be in a browser. I'm thinking about AIR as an alternative to the browser because that may give us more features b/c we don't have to stay in the browser security sandbox.

How would I go about having an Air app talk to a Java Web Start app? Do they have to ta开发者_开发知识库lk through a server? I guess potentially you can just create a socket connection between the two.


You've named the two best options already -- create a socket connection or implement a server API. There are other hackety methods you could use too -- for example, if you're using AIR, you could have both the Java app and the AIR app read/write to a file on disk for communication. This has a host of other issues (file lock when reading/writing) that a socket connection doesn't have, though.

0

精彩评论

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