jnan77 / jsonrpc4j

Automatically exported from code.google.com/p/jsonrpc4j
0 stars 0 forks source link

Use getProxyForService() instead of getService() in AbstractJsonServiceExporter #59

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

in order to allow interceptors and other AOP on the RemoteExporter please use 
getProxyForService() instead of getService() when building JsonRpcServer (see 
AbstractJsonServiceExporter:67@0.28).

Thanx a lot for writing this code!

For example:

    <bean name="/LobbyService.json" class="com.googlecode.jsonrpc4j.spring.JsonServiceExporter">
        <property name="service" ref="lobbyService" />
        <property name="serviceInterface" value="org.example.net.LobbyService" />
        <property name="interceptors" ref="performanceStatsMethodInterceptor" />
    </bean>

Original issue reported on code.google.com by sebastia...@gmail.com on 18 Jul 2013 at 9:08

GoogleCodeExporter commented 8 years ago

Original comment by brian.di...@gmail.com on 18 Oct 2013 at 11:12

GoogleCodeExporter commented 8 years ago
moving to github: https://github.com/briandilley/jsonrpc4j/issues

Original comment by brian.di...@gmail.com on 18 Oct 2013 at 11:29