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


