Exposing a Spring POJO as a Lingo Service
Submitted by rowell on Fri, 01/11/2008 - 13:59
Service Configuration:
<!-- Bean that implements com.samples.interface.Service -->
<bean id="serviceImpl" class="com.samples.impl.Service" />
<!-- Lingo Service Configuration -->
<bean id="lingoService" class="org.logicblaze.lingo.jms.JmsServiceExporter">
<property name="connectionFactory" ref="connectionFactory"/>
<property name="destination" ref="lingoQueue"/>
<property name="service" ref="serviceImpl"/>
<property name="serviceInterface" value="com.samples.interface.Service"/>
</bean>
<bean id="serviceImpl" class="com.samples.impl.Service" />
<!-- Lingo Service Configuration -->
<bean id="lingoService" class="org.logicblaze.lingo.jms.JmsServiceExporter">
<property name="connectionFactory" ref="connectionFactory"/>
<property name="destination" ref="lingoQueue"/>
<property name="service" ref="serviceImpl"/>
<property name="serviceInterface" value="com.samples.interface.Service"/>
</bean>
Client Configuration:
<!-- Lingo Client Configuration -->
<bean id="lingoClient" class="org.logicblaze.lingo.jms.JmsProxyFactoryBean">
<property name="connectionFactory" ref="connectionFactory"/>
<property name="destination" ref="lingoQueue"/>
<property name="serviceInterface" value="com.samples.interface.Service"/>
<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>
<bean id="lingoClient" class="org.logicblaze.lingo.jms.JmsProxyFactoryBean">
<property name="connectionFactory" ref="connectionFactory"/>
<property name="destination" ref="lingoQueue"/>
<property name="serviceInterface" value="com.samples.interface.Service"/>
<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>