+49 228 5552576-0


info@predic8.com

transport

Description

The transport receives messages from clients and invokes interceptors in the request and response flow. The interceptors that are engaged with the transport are global and are invoked for each message flowing through the router.

Can be used in

spring:beans, router

Syntax

				<transport coreThreadPoolSize="integer"
							  socketTimeout="integer"
							  tcpNoDelay="[true,false]"
							  httpClientRetries="integer"
							  autoContinue100Expected="[true,false]"
							  printStackTrace="[true,false]">
					<interceptors>
						[interceptors]*
					</interceptors>
				</transport>
			
Listing 1: transport Syntax

Sample

				<beans>
					<transport coreThreadPoolSize="20">
						<ruleMatching />
						<dispatching />
						<userFeature />
						
						<transform xslt="strip.xslt" />
						<wsdlRewriter />
						
						<httpClient />
					</transport>
				</beans>
			
Listing 2: transport Example

Attributes

Name Required Default Description Example
coreThreadPoolSize false 20

Membrane uses a thread pool to allocate threads to incomming clients connections. The core thread pool size is the minimum number of threads that are created in advance to serve client requests.

5
forceSocketCloseOnHotDeployAfter false 30000 When proxies.xml is changed and <router hotDeploy="true">, the Spring Context is automatically refreshed, which restarts the {@link Router} object (=Membrane Service Proxy). Before the context refresh, all open socket connections have to be closed. Exchange objects which are still running might delay this process. Setting forceSocketCloseOnHotDeployAfter to a non-zero number of milliseconds forces connections to be closed after this time.
maxThreadPoolSize false no limit Maximum number of threads to handle incoming connections. (Membrane uses 1 thread per incoming connection.) 300
printStackTrace false false Whether the stack traces of exceptions thrown by interceptors should be returned in the HTTP response.
reverseDNS false true Whether the remote address should automatically reverse-looked up for incoming connections.
socketTimeout false 30000 Socket timout in ms.
tcpNoDelay false true Whether to use the "TCP no delay" option. (=A TCP/IP packet should be constructed as soon as any data has been written to the network buffer. With "TCP no delay" set to false, the network hardware waits a short period of time wether the software will write more data. When the packet constructed from the data in the buffer would exceed the MTU in size, the packet is always constructed and sent immediately.)

Child Elements

Position Cardinality Description Element
1 0..* accessControl, adminConsole, analyser, apiManagement, authHead2Body, balancer, basicAuthentication, cache, clamav, clusterNotification, counter, dispatching, exchangeStore, formValidation, groovy, headerFilter, http2xml, httpClient, if, index, interceptor, limit, log, login, oauth2Resource, oauth2authserver, rateLimiter, regExReplacer, request, response, rest2Soap, reverseProxying, rewriter, ruleMatching, soap2Rest, soapOperationExtractor, soapStackTraceFilter, spdy, statisticsCSV, statisticsJDBC, statisticsProvider, stompClient, swaggerRewriter, switch, tcp, testService, throttle, tokenValidator, transform, urlNormalizer, userFeature, validator, wadlRewriter, webServer, webServiceExplorer, webSocket, wsdlPublisher, wsdlRewriter, xmlContentFilter, xmlProtection or custom elements

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