title: Concatenate string in spring xml configuration
body: <p>I need to concatenate the string value of a spring bean, to an existing string, and then set it as an attribute of another bean:</p>
  
  <pre><code>&lt;bean id="inet" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"&gt;
      &lt;property name="targetClass"&gt;&lt;value&gt;java.net.InetAddress&lt;/value&gt;&lt;/property&gt;
      &lt;property name="targetMethod"&gt;&lt;value&gt;getLocalHost&lt;/value&gt;&lt;/property&gt;
  &lt;/bean&gt;
  &lt;bean id="host" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"&gt;
      &lt;property name="targetObject"&gt;&lt;ref local="inet"/&gt;&lt;/property&gt;
      &lt;property name="targetMethod"&gt;&lt;value&gt;getHostName&lt;/value&gt;&lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>At this point, I have the hostname, in the 'host' bean. I now need to concatenate it and pass it to the publishedEndpointUrl attribute. Something like this:</p>
  
  <pre><code>&lt;jaxws:endpoint 
      id="foo"
      publishedEndpointUrl= "http://" + host + "/Foo" 
      implementor="com.example.v1.foo"
      address="/v1/Foo"/&gt;
  </code></pre>
  
  <p>How is this done using spring xml configuration?</p>