michael.stephenson
04-21-2006, 11:36 PM
Hi,
I have implemented a remoting service using Spring.Services with the config as follows:
<objects>
<object id="BasicLoggingAroundAdvice" type="Logging.Logger" />
<object
id="Acme.PetShop.Model.ServiceInterfaces.IAccountServi ce"
type="Spring.Remoting.SaoFactoryObject, Spring.Services">
<property
name="ServiceInterface"
value="Acme.PetShop.Model.ServiceInterfaces.IAccountServi ce, Acme.PetShop.Model"/>
<property
name="ServiceUri"
value="http://localhost:1402/AccountService.soap"/>
</object>
</objects>
This works fine, and i have also tested else where the advice object and know this works.
My next step was to wrap the remoting object with the LoggingAroundAdvice using the Spring AOP implementation, i have done this else where successfully so i expected that configuring it like below would work fine:
<objects>
<object id="BasicLoggingAroundAdvice" type="Edenbrook.Blueprint.Logging.BasicLoggingAroundAdvi ce, Edenbrook.Blueprint" />
<object
id="Acme.PetShop.Model.ServiceInterfaces.IAccountServi ce"
type="Spring.Aop.Framework.ProxyFactoryObject, Spring.Aop">
<property name="target">
<object
id="RemotedIAccountService"
type="Spring.Remoting.SaoFactoryObject, Spring.Services">
<property
name="ServiceInterface"
value="Acme.PetShop.Model.ServiceInterfaces.IAccountServi ce, Acme.PetShop.Model"/>
<property
name="ServiceUri"
value="http://localhost:1402/AccountService.soap"/>
</object>
</property>
<property name="interceptorNames">
<list>
<value>BasicLoggingAroundAdvice</value>
</list>
</property>
</object>
</objects>
When i tried to run the example like this i get the following error:
"Cannot create an instance of Spring.Aop.DynamicProxy.Proxy_....... because it is an abstract class"
I would appreciate any help in pointing me in the right direction to get this working, im guessing you either do AOP differently with remoting, or i need to implement the remoting in a different way
Thanks in advance
I have implemented a remoting service using Spring.Services with the config as follows:
<objects>
<object id="BasicLoggingAroundAdvice" type="Logging.Logger" />
<object
id="Acme.PetShop.Model.ServiceInterfaces.IAccountServi ce"
type="Spring.Remoting.SaoFactoryObject, Spring.Services">
<property
name="ServiceInterface"
value="Acme.PetShop.Model.ServiceInterfaces.IAccountServi ce, Acme.PetShop.Model"/>
<property
name="ServiceUri"
value="http://localhost:1402/AccountService.soap"/>
</object>
</objects>
This works fine, and i have also tested else where the advice object and know this works.
My next step was to wrap the remoting object with the LoggingAroundAdvice using the Spring AOP implementation, i have done this else where successfully so i expected that configuring it like below would work fine:
<objects>
<object id="BasicLoggingAroundAdvice" type="Edenbrook.Blueprint.Logging.BasicLoggingAroundAdvi ce, Edenbrook.Blueprint" />
<object
id="Acme.PetShop.Model.ServiceInterfaces.IAccountServi ce"
type="Spring.Aop.Framework.ProxyFactoryObject, Spring.Aop">
<property name="target">
<object
id="RemotedIAccountService"
type="Spring.Remoting.SaoFactoryObject, Spring.Services">
<property
name="ServiceInterface"
value="Acme.PetShop.Model.ServiceInterfaces.IAccountServi ce, Acme.PetShop.Model"/>
<property
name="ServiceUri"
value="http://localhost:1402/AccountService.soap"/>
</object>
</property>
<property name="interceptorNames">
<list>
<value>BasicLoggingAroundAdvice</value>
</list>
</property>
</object>
</objects>
When i tried to run the example like this i get the following error:
"Cannot create an instance of Spring.Aop.DynamicProxy.Proxy_....... because it is an abstract class"
I would appreciate any help in pointing me in the right direction to get this working, im guessing you either do AOP differently with remoting, or i need to implement the remoting in a different way
Thanks in advance