Archive

Archive for January, 2009

Install WebOrb as a Service on a different port

January 21st, 2009
WebOrb has built in functionality which allows you to install it as a Windows Service. c:\inetpub\wwwroot\weborb30\weborbee.exe -install.
However I was unable to pass the port parameters when installing as a service, and I need to change the port. (i.e c:\inetpub\wwwroot\weborb30\weborbee.exe -install -port 2039)
I ended up using the “Non Sucking Windows Service Manager” nssm. Available at http://iain.cx/src/nssm/
Once installed I simply ran the following command
nssm install WebOrbService c:\Inetpub\wwwroot\weborbK\weborbee.exe “-port 2039″

Greg WEBORB

Using Weborb Generated Code in Actionscript

January 19th, 2009

WebOrb has an excellent feature built in which allows you to generate Actionscript/Flex code from you deployed Java or .Net objects.  The example on their website shows you how to use this code in MXML but not in actionscript. However, it is quite simple. Here is an example function I have used below.

//Dashboard Settings

[Bindable]

private var swooshmodel:swooshModel = new swooshModel();

private var swooshProxy:swoosh;

private function LoadUserSettings () : void 

{ 

// Create a Responder for the call 

var responder:mx.rpc.Responder = new mx.rpc.Responder(OnUserSettings,onFault);

this.swooshProxy = new swoosh( swooshmodel ); 

swooshProxy.getUserSettings(responder); 

}

private function OnUserSettings (e:ResultEvent) : void 

{ }

Greg FLEX, WEBORB