<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net"
         xmlns:r="http://www.springframework.net/remoting">

  <description>cao</description>

  <r:caoFactory id="remoteCalculatorService" remoteTargetName="prototypeCalculatorWeaved"
                serviceUrl="tcp://localhost:8005" />
  
  <!--
		Old fashion way without remoting config parser...
  <object id="remoteCalculatorService" type="Spring.Remoting.CaoFactoryObject, Spring.Services">
    <property name="RemoteTargetName" value="prototypeCalculatorWeaved" />
    <property name="ServiceUrl" value="tcp://localhost:8005" />
  </object>
  -->

  <object id="calculatorService" type="Spring.Aop.Framework.ProxyFactoryObject, Spring.Aop">
    <property name="target" ref="remoteCalculatorService"/>
    <property name="interceptorNames">
      <list>
        <value>ConsoleLoggingAroundAdvice</value>
      </list>
    </property>
    <property name="ProxyInterfaces">
      <list>
        <value>Spring.Calculator.Interfaces.IAdvancedCalculator, Spring.Calculator.Contract</value>
      </list>
    </property>
  </object>

</objects>