Tuesday, May 19, 2009

AIR based Tool to generate Flex code for consuming/exposing BlazeDS Remoting services

BlazeMonster

This application helps developers to generate Flex code to consume BlazeDS Remoting services and also generate configuration file to expose Java classes as Remoting services. Developers can view response from a Remoting service, generate Flex code to invoke a Remoting service and also generate AS3 VO code for the Java classes.

What can this application do?

Existing Remoting services

1) View existing Remoting destinations

2) Invoke them and view the response in the application.

3) Generate Flex code to invoke operation on a destination

Create new Remoting service

1) View public methods of Java classes

2) Generate configuration files to expose a Java class as Remoting service

3) Generate Flex code to invoke methods on the Java class exposed as Remoting destination

AS3 VO Generation

1) Generate Action Script 3 VO classes for a Java class

2) All public properties of a Java class will be used to create the AS3 class

Remote BlazeDS

1) Useful when you cannot deploy the server code bundled with this application on the server

2) Invoke Remoting services exposed by third party BlazeDS server

3) Generate Flex code to invoke the exposed Remoting service

Screen shots of the application

Exposing Java classes as Remoting services

Exposing Java classes as Remoting services

Generated code

Generated code

AS3 VO class generated

AS3 VO class generated

How do I use this application?

  1. Set up BlazeDS for your web application as explained at this URL http://sujitreddyg.wordpress.com/2009/04/07/setting-up-blazeds/
  2. Download this BlazeMonster application (Zip file: 676 KB) set up from this URL http://www.sujitreddyg.com/applicationinstallers/blazemonster/BlazeMonsterSetup.zip
  3. Extract the downloaded zip file on your system
  4. Assuming “mywebapplication” is the name of your J2EE application
  5. Copy the invokeremotingservicebrowser.jsp from the extracted folder in to the root folder of your web application (mywebapplication/invokeremotingservicebrowser.jsp)
  6. Copy the folder named com from the extracted folder in to the WEB-INF/classes folder of your web application (mywebapplication/WEB-INF/classes/com/*)
  7. Install the BlazeMonster application by invoking the BlazeMonster.air file from the extracted folder

If you have problems try the following

  1. Check if the application root URL in the application is correct
  2. Send a request to this URL http://://invokeremotingservicebrowser.jsp?operationName=getDestinations from your browser
  3. Check if there are any errors in your server log files
  4. Make sure your server is configured to use at least JRE 1.5 and above. I am working on class file for older versions of JRE :)

Any suggestions/bug reports/enhancement feed backs are most welcome :)

Adobe Rocks :)



source: http://sujitreddyg.wordpress.com/2009/05/07/blazemonster/

post signature