Exposing a Spring POJO as a Lingo Service

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>

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>