예제 #1
0
  @Override
  protected Object invokeMethod(MessageContext mc, Method method, Object trg, Object[] args)
      throws Exception {
    PageContext pc = (PageContext) mc.getProperty(Constants.PAGE_CONTEXT);
    Component c = (Component) mc.getProperty(Constants.COMPONENT);

    RPCServer server = RPCServer.getInstance(pc.getId(), pc.getServletContext());
    TypeMapping tm = server.getEngine().getTypeMappingRegistry().getDefaultTypeMapping();

    return AxisCaster.toAxisType(tm, c.call(pc, method.getName(), toRailoType(pc, args)), null);
  }
예제 #2
0
 @Override
 public void run() {
   server.serve();
 }