|
|||||
|
|||||
Metadata Strategy
The MetadataStrategy interface provides a pluggable strategy to decide which methods are asynchronous one-way operations and which objects should be remote (and so copied by reference over the wire rather than by value). SimpleMetadataStrategyThe SimpleMetadataStrategy is the default implementation which works great for Java 1.x as it uses a simple convention...
The following example configuration demonstrates how you can configure a JMS proxy factory bean and enable async one way methods. <bean id="client" class="org.logicblaze.lingo.jms.JmsProxyFactoryBean"> <property name="serviceInterface" value="org.logicblaze.lingo.example.ExampleService"/> <property name="connectionFactory" ref="jmsFactory"/> <property name="destination" ref="exampleDestination"/> <!-- lets enable async one ways on the client --> <property name="metadataStrategy" ref="metadataStrategy"/> </bean> <!-- define the metadata strategy --> <bean id="metadataStrategy" class="org.logicblaze.lingo.SimpleMetadataStrategy"> <!-- enable async one ways --> <constructor-arg value="true"/> </bean> |
|||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||