Configure your service in spring as you would any other RemoteExporter:

37 views
Skip to first unread message

Dennis Gearon

unread,
Apr 1, 2013, 1:04:22 AM4/1/13
to json...@googlegroups.com
That line does not help me much, since I'm new to deep java programming. I have looked, and I can't tell which file I would put that in, i.e. from the following page:

http://code.google.com/p/jsonrpc4j/

this code section:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       
xsi:schemaLocation="http://www.springframework.org/schema/beans
                http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
>

   
<bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping"/>

   
<bean id="userService" class="com.mycompany.UserServiceImpl">
   
</bean>

   
<bean name="/UserService.json" class="com.googlecode.jsonrpc4j.spring.JsonServiceExporter">
       
<property name="service" ref="userService"/>
       
<property name="serviceInterface" value="com.mycompany.UserService"/>
   
</bean>

</beans>

Reply all
Reply to author
Forward
0 new messages