Package org.jboss.ejb3.proxy.spi.container

Examples of org.jboss.ejb3.proxy.spi.container.InvokableContext.invoke()


      stateful.removeMe();
     
      ObjectName deployment = new ObjectName("test.ejb3:name=Bill,service=EJB3");

      ClientKernelAbstraction kernel = KernelAbstractionFactory.getClientInstance();
      kernel.invoke(deployment, "stop", new Object[0], new String[0]);
      kernel.invoke(deployment, "start", new Object[0], new String[0]);
     
      stateful = (Stateful)getInitialContext().lookup("Stateful");
      assertNotNull(stateful);
      stateful.setState("state");
View Full Code Here


     
      ObjectName deployment = new ObjectName("test.ejb3:name=Bill,service=EJB3");

      ClientKernelAbstraction kernel = KernelAbstractionFactory.getClientInstance();
      kernel.invoke(deployment, "stop", new Object[0], new String[0]);
      kernel.invoke(deployment, "start", new Object[0], new String[0]);
     
      stateful = (Stateful)getInitialContext().lookup("Stateful");
      assertNotNull(stateful);
      stateful.setState("state");
      stateful.removeMe();
View Full Code Here

     
      ObjectName serverPeerName = new ObjectName("jboss.messaging:service=ServerPeer");
     
      KernelAbstraction kernel = KernelAbstractionFactory.getInstance();
      // invoke the server to create the destination
      Object result = kernel.invoke(serverPeerName,
              methodName,
              new Object[]{name, jndiName},
              new String[]{"java.lang.String", "java.lang.String"});
     
      log.debug("result = " + result);
View Full Code Here

/*    */
/* 75 */     ObjectName serverPeerName = new ObjectName("jboss.messaging:service=ServerPeer");
/*    */
/* 77 */     KernelAbstraction kernel = KernelAbstractionFactory.getInstance();
/*    */
/* 79 */     Object result = kernel.invoke(serverPeerName, methodName, new Object[] { name, jndiName }, new String[] { "java.lang.String", "java.lang.String" });
/*    */
/* 84 */     log.debug("result = " + result);
/*    */   }
/*    */ }

View Full Code Here

      {
         Object target = entry.getTarget();
         if (target instanceof RARDeployment)
         {
            RARDeployment deployment = (RARDeployment)target;
            return deployment.invoke(operationName, params, signature);
         }
         else
         {
            Class[] types = new Class[signature.length];
            for (int i = 0; i < signature.length; ++i)
View Full Code Here

      {
         Object target = entry.getTarget();
         if (target instanceof RARDeployment)
         {
            RARDeployment deployment = (RARDeployment) target;
            return deployment.invoke(operationName, params, signature);
         }
         else
         {
            Class[] types = new Class[signature.length];
            for (int i = 0; i < signature.length; ++i)
View Full Code Here

/*     */     {
/* 239 */       Object target = entry.getTarget();
/* 240 */       if ((target instanceof RARDeployment))
/*     */       {
/* 242 */         RARDeployment deployment = (RARDeployment)target;
/* 243 */         return deployment.invoke(operationName, params, signature);
/*     */       }
/*     */
/* 247 */       Class[] types = new Class[signature.length];
/* 248 */       for (int i = 0; i < signature.length; i++)
/*     */       {
View Full Code Here

/*    */     {
/* 53 */       Object target = entry.getTarget();
/* 54 */       if ((target instanceof RARDeployment))
/*    */       {
/* 56 */         RARDeployment deployment = (RARDeployment)target;
/* 57 */         return deployment.invoke(operationName, params, signature);
/*    */       }
/*    */
/* 61 */       Class[] types = new Class[signature.length];
/* 62 */       for (int i = 0; i < signature.length; i++)
/*    */       {
View Full Code Here

      Endpoint endpoint = getInstalledEndpoint();
      assert endpoint != null : "No endpoint associated with context " + this.endpointContext
            + " - cannot invoke the method on bean";

      // finally pass-on the control to the endpoint
      return endpoint.invoke(this.session, null, method, args);
   }

   /**
    * Returns the context corresponding to the container, associated with this invocation handler
    *
 
View Full Code Here

      Endpoint endpoint = getInstalledEndpoint();
      assert endpoint != null : "No endpoint associated with context " + this.endpointContext
            + " - cannot invoke the method on bean";

      // finally pass-on the control to the endpoint
      return endpoint.invoke(this.session, this.businessInterface, method, args);
   }

   /**
    * Returns the context corresponding to the container, associated with this invocation handler
    *
 
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.