I am trying to get the remote service up and running on a dm server through "org.springframework.remoting.httpinvoker.HttpInvo kerServiceExporter"
But the service is not available while accessing through client [500 error]
In WEB-INF/spring/service.xml
In web.xmlCode:<bean name="accountExporter" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter"> <property name="service" ref="accountService"/> <property name="serviceInterface" value="example.AccountService"/> </bean>
On client sideCode:<servlet> <servlet-name>accountExporter</servlet-name> <servlet-class>org.springframework.web.context.support.HttpRequestHandlerServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>accountExporter</servlet-name> <url-pattern>/remoting/AccountService</url-pattern> </servlet-mapping>
Code:<bean id="myclient" class="com.pg.remote.client.MyClient" init-method="init"> <property name="accountService" ref="httpInvokerProxy"></property> </bean> <bean id="httpInvokerProxy" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"> <property name="serviceUrl" value="http://localhost:8080/remote/remoting/AccountService" /> <property name="serviceInterface" value="com.pg.remote.server.AccountService" /> </bean>


