+49 228 5552576-0




Performs load-balancing between several nodes. Nodes sharing session state may be bundled into a cluster.

Can be used in

spring:beans, if, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy and transport


				<serviceProxy port="9000">
					<adminConsole readOnly="[true, false]" />						
Listing 12: adminConsole Example


				<serviceProxy port="2000">
						<xmlSessionIdExtractor namespace="http://chat.predic8.com/"
							localName="session" />
							<cluster name="Default">
								<node host="node1.predic8.com" port="8080" />
								<node host="node2.predic8.com" port="8090" />
								<node host="node3.predic8.com" port="8100" />
						<byThreadStrategy maxNumberOfThreadsPerEndpoint="10"
							retryTimeOnBusy="1000" />			
Listing 12: balancer Example


Name Required Default Description Example
name false Default Uniquely identifies this Load Balancer, if there is more than one. Used in the web administration interface and lbclient to manage nodes. balancer1
sessionTimeout false 3600000 Time in milliseconds after which sessions time out. (If a session extractor is used.) Default is 1 hour, 0 means never. 600000 (10min)


Child Elements

Position Cardinality Description Element
1 0..1 Sets the strategy used to extract a session ID from incoming HTTP requests. jSessionIdExtractor or xmlSessionIdExtractor
2 0..* Specifies a list of clusters. clusters
3 0..1 Sets the strategy used to choose the backend nodes. byThreadStrategy or roundRobinStrategy
4 0..1 Checks if nodes are still available. Sets them to "DOWN" when not reachable, else sets them back up when they are reachable. nodeOnlineChecker

Copyright © 2008-2018 predic8 GmbH
Koblenzerstr. 65, 53173 Bonn, Tel. +49 (228) 555 25 76-0