Announcement Announcement Module
Collapse
No announcement yet.
How to use a ProxyFactoryBean as a proxy implementation for my service Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to use a ProxyFactoryBean as a proxy implementation for my service

    I have a service say 'CustomerService' which i am exporting it through RmiServiceExporter. But, i do not have implementation of this service at the moment. I need to use a ProxyFactoryBean as the ServiceImpl and expose this service.

    <bean id="rmiServiceExporter" class="org.springframework.remoting.rmi.RmiService Exporter">
    <property name="serviceName" value="CustomerService"/>
    <property name="serviceInterface" value="com.x.app.CustomerService"/> <!-- This is the interface.-->
    <property name="service" ref="dsImpl" /><!-- this is the impl. i want to use proxy here -->
    <!-- defaults to 1099 -->
    <property name="registryPort" value="1099"/>
    </bean>

    Thank you.
Working...
X