Go to new doc!

+49 228 5552576-0


info@predic8.com

beans

Membrane is composed of serveral components. The Spring framework uses the configuration specified in the monitor-beans.xml file to plug together the configuration. to make configuration more comfortable Membrane has a set of custom elements described in this reference. but you can also use the standard Spring elements like bean or property.

Syntax

				<spring:beans xmlns="http://membrane-soa.org/router/beans/1/"
					xmlns:spring="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
					xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
										http://membrane-soa.org/router/beans/1/ http:/www.predic8.com/schema/router/conf/router-conf.xsd">
				
				
					<router>
				
					<transport>
				
					[beans]*
				</spring:beans>
			
Listing 1: beans Syntax

Sample

				<spring:beans xmlns="http://membrane-soa.org/router/beans/1/"
					xmlns:spring="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
					xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
										http://membrane-soa.org/router/beans/1/ http:/www.predic8.com/schema/router/conf/router-conf.xsd">
				
				
					<router/>
				
					<transport>
						<ruleMatching />
						<dispatching />
						<userFeature />
						<httpClient />
					</transport>
				
				</spring:beans>
			
Listing 2: beans Example

Child Elements

Name Cardinality Description
fileExchangeStore 0..* Stores exchanges to the file system.
forgetfulExchangeStore 0..* This store don't save any exchanges.
memoryExchangeStore 0..* Keeps exchanges in memory.
router 1 Configures the router.
transport 1 Configures the HTTP transport.