+ lessen the int port to a xsd:string to support property placeholders
This commit is contained in:
Costin Leau
2011-03-28 17:33:44 +03:00
parent bb26f2d678
commit 4c43122c33
3 changed files with 8 additions and 6 deletions

View File

@@ -743,10 +743,7 @@ The port number of the connection (between 1 and 65535 inclusive).
]]></xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:positiveInteger">
<xsd:minInclusive value="1"/>
<xsd:maxInclusive value="65535"/>
</xsd:restriction>
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>

View File

@@ -4,8 +4,10 @@
xmlns:gfe="http://www.springframework.org/schema/gemfire"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
<!-- all beans are lazy to allow the same config to be used between multiple tests -->
@@ -14,12 +16,13 @@
<gfe:cache />
<gfe:pool>
<gfe:locator host="localhost" port="40403"/>
<gfe:locator host="localhost" port="${gfe.port}"/>
</gfe:pool>
<gfe:pool id="complex" free-connection-timeout="6000" retry-attempts="30" ping-interval="5000" subscription-enabled="true">
<gfe:server host="localhost" port="40404"/>
<gfe:server host="localhost" port="${gfe.port.4}"/>
<gfe:server host="localhost" port="40405"/>
</gfe:pool>
<context:property-placeholder location="classpath:port.properties"/>
</beans>

View File

@@ -0,0 +1,2 @@
gfe.port=40403
gfe.port.4=40404