Announcement Announcement Module
Collapse
No announcement yet.
JSONRPC on IBM RAD 7 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 05:42 PM.
Working...
X