Results 1 to 1 of 1

Thread: JSONRPC on IBM RAD 7

  1. #1

    Default JSONRPC on IBM RAD 7

    This post may not directly related to the Spring, but still post it, just try my luck.

    I Use Spring MVC framework, in order to use JSONRPC,

    1)in a JSP file, I added:

    <jsp:useBean id="JSONRPCBridge" scope="session" class="com.metaparadigm.jsonrpc.JSONRPCBridge" />

    <jsp:useBean id="testRPCService" scope="session" class="com.jsonrpc.TestRPCService" />

    <% JSONRPCBridge.registerObject("testRPCService", testRPCService); %>

    2)I use the codes to call:

    jsonrpc = new JSONRpcClient("/testjson.htm?cmd=test");

    jsonrpc.testRPCService.getTest();


    ----it works fine.


    Now, in JSP,

    3)I Added (testRPCService2):

    <jsp:useBean id="testRPCService2" scope="session" class="com.jsonrpc.TestRPCService2" />

    <% JSONRPCBridge.registerObject("testRPCService2", testRPCService2); %>

    4)Then I call:

    jsonrpc = new JSONRpcClient("/testjson.htm?cmd=test");

    jsonrpc.testRPCService2.getTest();


    ----Problem:

    It does NOT trigger the call getTest() of TestRPCService2.java. My feeling is that there is an old compiled file somewhere which need to be flushed out or refreshed. The RAD system failed to (just a guess).

    What should I do to solve the problem? Any suggestion will be welcome.


    Scott

    TestRPCService2.java is created with a function getTest()
    Last edited by scott; Oct 15th, 2007 at 04:42 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •