Hi to all,
How can I export an Hessian sevice with java-config?
Suppose you have the following xml configuration:
Code:
    <bean name="/ServiceRoles"
        class="org.springframework.remoting.caucho.HessianServiceExporter">
        <property name="service" ref="roleManager" />
        <property name="serviceInterface"
            value="my.org.IRoleManager" />
    </bean>
How can I convert to java-config? If I use this configuration:
Code:
   @Bean(aliases = { "/ServerRoles" } )
   public HessianServiceExporter ServerRoles() {
      HessianServiceExporter exporter = new HessianServiceExporter();
      exporter.setService(roleManager());
      exporter.setServiceInterface(IRoleManager.class);
      return exporter;
   }
And inside the ApplicationContext.xml in Tomcat I have activate java-config from XML:
Code:
<beans>
 ...
    <bean class="org.springframework.config.java.process.ConfigurationPostProcessor"/>
<beans>
The Exporter would not work!
How can I export the service ?