简体   繁体   中英

Java/Flex for desktop applications

Can Flex be used for a desktop application whose business logic is written using Java? Everything I've read about flex uses a remoting or http protocol to communicate with the backend via a J2EE server, so I'm not sure how that would work for a desktop app (unless an embedded j2ee server was running in the app).

Thanks, Jeff

It isn't unusual for a j2ee server to be running in the background even if no internet connectivity is ever required.

That being said, Adobe AIR has full access to executing remote programs. This would allow an Adobe AIR application to call a Java application outside of any server instance.

I think the easiest approach would still be to embed some kind of application server.

I worked on a project which use a Flash client with a Java server in 2003. Later I worked with a Flash client with a Java server in 2006. Both applications worked nicely, though I didn't code any flash/flex. On both occasions we streamed XML between the client and the server with the option to use HTTP pooling.

您可以通过Merapi Project使用Flex和Adobe AIR进行此操作。

You can also consider that Flex runs the same both in AIR and in the browser, that said if you've a Blaze DS on the Java end of things - or granite ds for that matter - it's pretty straight forward. You can also consider that air has access to sqllite.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM