开发者

Push message to AIR app from Java Server

I am looking for solutions for a problem that we are facing. We are planning to make a POC for Desktop Alert application. We will have a desktop AIR app that will connect to a Java Server. The server will need to notify Desktop App when it has a notifi开发者_C百科cation which will be displayed on the screen.

A couple of options that we have discovered are :

1. Keep a persistent connection between the AIR app and the Server, using some sockets and listen to any changes.

2. Poll the Server at intervals to check if some new data has come.

Since these options don't seem optimal (persistent connection) or seems performance wise (polling) better.

Is there a better solution for this problem or do we have to choose one of these?


For this, you could use a BlazeDS message service if you want to push messages to your client. Or a regular remote service with polling enabled. It is built in out of the box and well tested equipment :)

Other technologies like GraniteDS or WebOrb for java are also possibilities.

Cheers

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜