Java Reference
In-Depth Information
</jsp-config>
</web-app>
The next step is the most important because we export the POJO-based policy quota-
tion service as a Burlap remote service. Again, this can be done with mere configuration,
as in Listing 5-39. In this case, the BurlapServiceExporter acts as the service endpoint.
Listing 5-39. insurance-servlet.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=" http://www.springframework.org/schema/beans"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
"
>
<bean name="policyQuoteServiceImpl"
class="com.apress.einsure.business.impl. å
PolicyQuoteApplicationServiceImpl">
</bean>
<bean name="/PolicyQuoteService" class="org.springframework.remoting.caucho. å
BurlapServiceExporter">
<property name="service" ref="policyQuoteServiceImpl"/>
<property name="serviceInterface" value="com.apress.einsure.business. å
api.PolicyQuoteApplicationService"/>
</bean>
</beans>
Now that I have exposed the policy quote service using Burlap remoting, it's time to
focus on the client. Once more you will just need to configure a proxy factory bean, and
that's more or less all there is to it, as shown in Listing 5-40.
 
 
Search WWH ::




Custom Search