Package nexj.core.rpc

Examples of nexj.core.rpc.Request.addInvocation()


      {
         TransferObject tobj = new TransferObject(((Metaclass)accessor).getName(), 0);
         Request request = new Request();

         tobj.setEventName(event.getName());
         request.addInvocation(tobj);

         try
         {
            instance.setValue("data", Binary.fromObject(request));
         }
View Full Code Here


      TransferObject tobj = new TransferObject();
     
      tobj.setClassName("TestMessage");
      tobj.setEventName("runTest");
     
      request.addInvocation(tobj);
      request.setAsync(StringUtil.parseBoolean(getProperty("async", "0")));

      for (int nReq = 0; nReq < nReqCount; ++ nReq)
      {
         Object response = client.invoke(new URI(getProperty("url", "http://localhost:8080/nexj/text")), HTTP.METHOD_POST,
View Full Code Here

      list.add("name3");
      tobj.setClassName("User");
      tobj.setValue("firstName", "fName");
      tobj.setValue("names", list);
      request.setVersion("0");
      request.addInvocation(tobj);
      m_marshaller.serialize(request, m_writer);
      XMLUtil.parse(new StringReader(m_writer.toString()), m_xsdMap); // validate to XSD

      request = (Request)m_unmarshaller.deserialize(new StringReader(m_writer.toString()));
View Full Code Here

      TransferObject tobj = new TransferObject();

      tobj.setClassName("InvocationContextTest");
      tobj.setEventName("create");

      req.addInvocation(tobj);
      req.setCommit(false);

      // This should complete without throwing the err.runtime.transientCommit exception
      server.invoke(req);
   }
View Full Code Here

            {
               arguments[i] = RPCUtil.transferState(m_arguments[i], null, identityMap, RPCUtil.TF_ALL);
            }
         }

         request.addInvocation(tobj, arguments);
         m_tobj.setValue(Sender.BODY, request);

         return super.getMessage();
      }
   }
View Full Code Here

         tobj.setValue(m_sProperties, properties);
      }

      Request request = new Request();

      request.addInvocation(tobj);

      Response response = ((Server)m_server.getInstance(context)).invoke(request);

      return response.getResult(0);
   }
View Full Code Here

   {
      Request request = new Request();

      if (m_instance == null)
      {
         request.addInvocation(
            m_event.getMetaclass().getName(), m_event.getName(),
            (m_argList == null) ? null : m_argList.toArray(), null);
      }
      else
      {
View Full Code Here

            m_event.getMetaclass().getName(), m_event.getName(),
            (m_argList == null) ? null : m_argList.toArray(), null);
      }
      else
      {
         request.addInvocation(
            m_instance, m_event.getName(), (m_argList == null) ? null : m_argList.toArray(), null);
      }

      Argument result = m_event.getResult();
      Type resultType = (result == null) ? null : result.getType();
View Full Code Here

            instance.getValueDirect(m_objectAttribute.getOrdinal()), null, new HashTab(), RPCUtil.TF_ALL);

         Request request = new Request();

         tobj.setEventName(symbol.toString());
         request.addInvocation(tobj);

         try
         {
            sqlWork.setInstanceValue(column, Binary.fromObject(request));
         }
View Full Code Here

      int nSizeMultiplier = 5; // ~50k chars
     
      for (int i = 0; i < nSizeMultiplier; ++i)
      {
         // create argument transfer object
         req.addInvocation(sizedTransferObject("arg", i, nSizeMultiplier), new Pair("pair" + i));

         // create filter transfer object
         // (don't reuse arg because SOAP can map same object to multiple places,
         //  XML can't and hence skews results)
         req.addFilter(sizedTransferObject("filter", i, nSizeMultiplier));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.