WebORB AIR Edition
I had an honor to talk about AIR and .NET integration during the Seattle and Dallas stops of the Adobe's OnAIR Bus Tour. In my presentations I demonstrated the new addition to the WebORB product lineup we will be introducing soon - WebORB AIR Edition. So what is WebORB AIR Edition? The answer is, as you may guess, a version of WebORB specifically designed to work with AIR applications. The beauty of the new edition is it does not require a web server to host your "backend" functionality. Here are some things you can do with the WebORB AIR Edition:
- Run it as a Windows service or a Unix process.
- Distribute it with your AIR application so both client and server are running on the same machine
- Use the same RemoteObject API on the AIR client side to connect to the server (requests will not use HTTP, so you do not need a web server)
- Asynchronously deliver data from the backend code to the AIR client (data push)
- Leverage all operating system resources on the server side and expose them as services to the AIR client
- Download and install WebORB for .NET version 3.2 or higher. Do not install any license keys. At this point the installer does require IIS, but that will be changed in the final release.
- The installation directory is /Inetpub/wwwroot/weborb30. You need to make a few configuration changes to make it work with AIR:
- Download and copy services-config.xml to /Inetpub/wwwroot/weborb30/WEB-INF/flex (you will need to overwrite the existing file)
- Download and copy remoting-config.xml to /Inetpub/wwwroot/weborb30/WEB-INF/flex (you will need to overwrite the existing file)
- To deploy your code, compile it as a .NET class library and copy the DLL with all the dependencies into /Inetpub/wwwroot/weborb30/bin
- To start the product, open a command prompt window (cmd.exe) and change the current directory to /Inetpub/wwwroot/weborb30. Run weborbee.exe, it will start the server as a Windows process. You can also run it as a Windows service - run "weborbee -help" to see available options
- On the AIR (Flex Builder) side, you can create your AIR project using the "None/other" server type profile. Make sure to add the following AIR compiler option in the project properties window:
-services c:/Inetpub/wwwroot/weborb30/WEB-INF/flex/services-config.xml - Create your remote objects as shown below:
var ro:RemoteObject = new RemoteObject( "GenericAIRDestination" );
ro.source = "com.foo.MyService";
ro.helloWorld.addEventListener( ResultEvent.RESULT, gotData );














