http://static.springsource.org/sprin...ng-httpinvoker
This I can't make it work.
I manage to make work the alternative way by declaring in the web.xml
but the first mentionned way doesn't work, it's not automagically bound to an already existing spring mvc dispatcher servlet
To expose the AccountService (mentioned above) within a Spring Web MVC DispatcherServlet, the following configuration needs to be in place in the dispatcher's application context:
Such an exporter definition will be exposed through the DispatcherServlet's standard mapping facilities, as explained in the section on Hessian.
HTML Code:
<bean name="/AccountService" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter"> <property name="service" ref="accountService"/> <property name="serviceInterface" value="example.AccountService"/> </bean>
I manage to make work the alternative way by declaring in the web.xml
HTML Code:
<servlet> <servlet-name>accountExporter</servlet-name> <servlet-class>org.springframework.web.context.support.HttpRequestHandlerServlet</servlet-class> </servlet>
Comment