Page 1 of 1

Thin Client Connection Balancing

Posted: Mon Oct 10, 2011 1:47 pm
by stevek
Hoping someone can help clarify how to use the inbuilt Jade Thin Client Connection Balancing without consuming Jade licences.

After reading the Jade doc, I created a separate mini app that fired the enableThinClientConnBalance command and hence had each AppServer execute this mini app. However, this methodology consumes a Jade licence because of the separate app being called.

I noticed the clientBackground app does not consume a Jade licence so was wondering how I could get that app to run the command instead. Is there some inherited method I can use for this purpose?

Thanks
Steve

Re: Thin Client Connection Balancing

Posted: Mon Oct 10, 2011 2:14 pm
by BeeJay
For our system, we run a non-GUI ServerApplication in each AppServer Node using a ServerApplication# ini file setting. This application does the app.enableThinClientConnBalancing() call, if appropriate to do so, and then immediately terminates. This ensures each of the AppServers we're running are setup for connection balancing without permanently using up any additional process licences. Then, each of our thin clients that connects also does the app.enableThinClientConnBalancing() call, again only if appropriate to do so.

Our initialization logic for this non-GUI app looks like the following:

Code: Select all

constants NoAppServerGroup : String = "<None>" ; vars appServerGroupName : String ; begin if not node.isApplicationServer then // Prevent 15901 exception when running as fat client or in single user mode return ; endif; // Let's get the AppServerGroupName, if they've specified one appServerGroupName := app.getProfileStringAppServer( app.getIniFileNameAppServer, IniSection_JadeAppServer, IniSetting_AppServerGroupName, NoAppServerGroup ); if appServerGroupName <> NoAppServerGroup then // They have specified an AppServerGroupName, so we're safe to enable thin client connection balancing without getting a 15902 exception app.enableThinClientConnBalancing; endif; epilog terminate ; end;
Note: One potential downside to this approach is that there may be a slight delay if the thin client that is given first opportunity to handle the balancing of a new connection is too busy to service the request when a new thin client connects.

Cheers,
BeeJay.

Re: Thin Client Connection Balancing

Posted: Mon Oct 10, 2011 3:33 pm
by stevek
Thanks Beejay