Friday, March 28, 2008

BlazeDS for Java-Flex communication

BlazeDS is a server-based Java remoting and web messaging technology that enables communication between back-end Java applications and Adobe Flex applications running in the browser. In this post, I describe a way (may not be the best) I was able to successfully to build a simple application using BlazeDS and Flex. The application is build using eclipse and ant, rather than using FlexBuilder. Following are the main steps that you have to follow to implement the example.

Install tomcat

Install Flex sdk

Download BlazeDS web application.

Create tomcat user with manager permisison

Create dynamic web project in eclipse

Create java file

Create mxml file

Update the config files in the WEB-INF/flex directory of the web application

Copy flexTasks.tasks to the root directory.

Create build file

Copy catalina-ant.jar and flextasks.jar into ant lib directory, add them to ant runtime in eclipse.

9 comments:

hi Abhiyou have good knowledge in javamyself Ashish Patel I work on .net platform and starting to work on new platform flex and java where I get project on BlazeDS but my problem is that I work on Flex 3.0, I have flex build so complied project on flex and generated its output in Java project form where I deploy it but it did not work well so can you help in this how I integrate flex and java with blazeDS feature