Results 1 to 2 of 2

Thread: How to define bean property of type java.util.Properties?

  1. #1
    Join Date
    Oct 2008
    Location
    Minneapolis, MN
    Posts
    39

    Default How to define bean property of type java.util.Properties?

    Hi, I have what should be a simple question but I can't seem to figure this one out.

    I have the following bean defined:
    Code:
        <bean id="messageSender" class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
            <property name="connectionTimeout" value="15000"/>
    
            <property name="readTimeout" value="60000"/>
    
            <property name="maxTotalConnections" value="20"/>
    
            <property name="maxConnectionsPerHost" value=""/>
        </bean>
    The maxConnectionsPerHost property actually needs to be of type java.util.Properties. How would I go about setting that?

    Thanks-

  2. #2
    Join Date
    Oct 2008
    Location
    Minneapolis, MN
    Posts
    39

    Default

    Figured it out.

    Code:
        <bean id="messageSender" class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
            <property name="connectionTimeout" value="15000"/>
    
            <property name="readTimeout" value="60000"/>
    
            <property name="maxTotalConnections" value="20"/>
    
            <property name="maxConnectionsPerHost">
                <props>
                    <prop key="www.somehost.com">20</prop>
                </props>
            </property>
        </bean>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •