Thin Client Connection Balancing

For questions and postings not covered by the other forums
stevek
Posts: 11
Joined: Mon Aug 24, 2009 4:25 pm

Thin Client Connection Balancing

Postby stevek » Mon Oct 10, 2011 1:47 pm

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

User avatar
BeeJay
Posts: 312
Joined: Tue Jun 30, 2009 2:42 pm
Location: Christchurch, NZ

Re: Thin Client Connection Balancing

Postby BeeJay » Mon Oct 10, 2011 2:14 pm

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.

stevek
Posts: 11
Joined: Mon Aug 24, 2009 4:25 pm

Re: Thin Client Connection Balancing

Postby stevek » Mon Oct 10, 2011 3:33 pm

Thanks Beejay


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 8 guests

cron