|
|||||
|
|||||
Async Example
This example configuration is fairly similar to the Synchronous Example apart from method calls which have a void return and have no checked exceptions will be invoked asynchronously on the server side. <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> Notice that on the invocation factory we enable one way method calls. Asynchronous one way methods are disabled by default (here is the reason). |
|||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||