Sunday, November 9, 2008

Build a Java-Flex Application Based on BlazeDS

BlazeDS is the server-based Java remoting and web messaging technology that enables developers to easily connect to back-end distributed data and push data in real-time to Adobe® Flex® and Adobe AIR™ applications for more responsive rich Internet application (RIA) experiences.

Follow these steps to get started with BlazeDS:

1. Ensure any necessary software and configuration item work properly on your computer. For instance, jdk, a java application server( tomcat, jboss, weblogic... ) that BlazeDS support.
2. Download and save BlazeDS to your computer.
3. Create a new web-project in eclipse.
3. Unzip balzeds.war, and copy folder /WEB-INF to your /WEB-INF folder.
4. Create a balzeds remote call interface file, I create and name it WeatherService.
5. Edit remoteing-config.xml, add your destination item.
6. Create your flex application, and new a remoteObject to call java function above.

sample code:
blazeds-client-tutorial.rar and blazeds-server-tutorial.rar , enjoy it.

No comments:

Post a Comment