Package nexj.core.rpc

Examples of nexj.core.rpc.Server


    * Precondition:
    *    testCanUnitTestsDetectImproperCommitOfATransaction must PASS for this test result to be valid.
    */
   public void testBeginTransactionWhenTransient()
   {
      Server server = (Server)m_context.getComponentInstance("Server.Generic");
      Request req = new Request();
      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


               }

               throw e;
            }

            Server server = (Server)m_server.getInstance(m_context);
            Object response;

            if (request instanceof Invoker)
            {
               Invoker invoker = (Invoker)request;

               invoker.setLocale(m_request.getLocale());
               response = invoker.invoke(server);
            }
            else if (request instanceof Request)
            {
               response = server.invoke((Request)request);
            }
            else
            {
               throw new RequestException("err.rpc.xml.request");
            }
View Full Code Here

TOP

Related Classes of nexj.core.rpc.Server

Copyright © 2018 www.massapicom. 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.