Package org.jboss.invocation

Examples of org.jboss.invocation.Invocation


/*     */             }
/*     */           }
/*     */
/* 298 */           java.lang.Object[] params = op.readParams((org.omg.CORBA_2_3.portable.InputStream)in);
/*     */
/* 300 */           Invocation inv = new Invocation(id, op.getMethod(), params, tx, principal, password);
/*     */
/* 306 */           inv.setValue(InvocationKey.INVOKER_PROXY_BINDING, "iiop", PayloadKey.AS_IS);
/*     */
/* 309 */           inv.setType(InvocationType.REMOTE);
/* 310 */           retVal = this.mbeanServer.invoke(this.containerName, "invoke", new java.lang.Object[] { inv }, Invocation.INVOKE_SIGNATURE);
/*     */         }
/*     */
/* 316 */         out = (org.omg.CORBA_2_3.portable.OutputStream)handler.createReply();
/*     */
View Full Code Here


/*     */       {
/* 391 */         this.logger.error("Error getting EJBObject id", e);
/* 392 */         throw new UnknownException(e);
/*     */       }
/*     */
/* 395 */       Invocation inv = new Invocation(id, op.getMethod(), arguments, tx, null, null);
/*     */
/* 401 */       inv.setValue(InvocationKey.INVOKER_PROXY_BINDING, "iiop", PayloadKey.AS_IS);
/*     */
/* 404 */       inv.setType(InvocationType.REMOTE);
/* 405 */       java.lang.Object localObject1 = this.mbeanServer.invoke(this.containerName, "invoke", new java.lang.Object[] { inv }, Invocation.INVOKE_SIGNATURE);
/*     */       return localObject1;
/*     */     }
/*     */     catch (MBeanException e)
/*     */     {
View Full Code Here

/*     */   {
/*  84 */     if (args == null) {
/*  85 */       args = EMPTY_ARGS;
/*     */     }
/*     */
/*  88 */     Invocation invocation = new Invocation();
/*     */
/*  91 */     invocation.setInvocationContext(this.context);
/*  92 */     invocation.setId(this.context.getCacheId());
/*  93 */     invocation.setObjectName(this.context.getObjectName());
/*  94 */     invocation.setMethod(m);
/*  95 */     invocation.setArguments(args);
/*  96 */     invocation.setValue(InvocationKey.INVOKER_PROXY_BINDING, this.context.getInvokerProxyBinding(), PayloadKey.AS_IS);
/*     */
/* 101 */     Object obj = this.next.invoke(invocation);
/* 102 */     return obj;
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public Object invoke(InvocationRequest invocationReq)
/*     */     throws Throwable
/*     */   {
/* 221 */     Invocation invocation = (Invocation)invocationReq.getParameter();
/* 222 */     Thread currentThread = Thread.currentThread();
/* 223 */     ClassLoader oldCl = currentThread.getContextClassLoader();
/* 224 */     ObjectName mbean = null;
/*     */     try
/*     */     {
/* 227 */       mbean = (ObjectName)Registry.lookup(invocation.getObjectName());
/*     */
/* 230 */       Object obj = getServer().invoke(mbean, "invoke", new Object[] { invocation }, Invocation.INVOKE_SIGNATURE);
/*     */
/* 234 */       localMarshalledObject = new MarshalledObject(obj);
/*     */     }
View Full Code Here

/* 81 */     ClassLoader callerClassLoader = SecurityActions.getContextClassLoader();
/* 82 */     SecurityActions.setContextClassLoader(this.container.getClassLoader());
/* 83 */     this.container.pushENC();
/*    */     try
/*    */     {
/* 86 */       Invocation inv = new Invocation(this.timedObjectId.getInstancePk(), this.method, new Object[] { timer }, null, null, null);
/* 87 */       inv.setValue(InvocationKey.INVOKER_PROXY_BINDING, null, PayloadKey.AS_IS);
/* 88 */       inv.setType(InvocationType.LOCAL);
/*    */
/* 90 */       BeanMetaData bmd = this.container.getBeanMetaData();
/* 91 */       SecurityIdentityMetaData ejbTimeoutIdentity = bmd.isEntity() ? null : bmd.getEjbTimeoutIdentity();
/* 92 */       if ((ejbTimeoutIdentity != null) && (!ejbTimeoutIdentity.getUseCallerIdentity()))
/*    */       {
View Full Code Here

/*     */     {
/*  70 */       InvocationRequest remoteInv = (InvocationRequest)dataObject;
/*     */
/*  72 */       if ((remoteInv.getParameter() instanceof Invocation))
/*     */       {
/*  74 */         Invocation inv = (Invocation)remoteInv.getParameter();
/*     */
/*  76 */         MarshalledInvocation marshInv = new MarshalledInvocation(inv);
/*     */
/*  78 */         if (inv != null)
/*     */         {
View Full Code Here

/*     */     {
/*  81 */       InvocationRequest remoteInv = (InvocationRequest)dataObject;
/*     */
/*  83 */       if ((remoteInv.getParameter() instanceof Invocation))
/*     */       {
/*  85 */         Invocation inv = (Invocation)remoteInv.getParameter();
/*     */
/*  87 */         MarshalledInvocation marshInv = new MarshalledInvocation(inv);
/*     */
/*  89 */         if (inv != null)
/*     */         {
View Full Code Here

/*     */
/*     */   protected void processInvocation() throws Exception
/*     */   {
/* 224 */     this.handlingResponse = true;
/*     */
/* 226 */     Invocation invocation = (Invocation)this.in.readObject();
/* 227 */     this.in.readObject();
/* 228 */     Object response = null;
/*     */     try
/*     */     {
/* 232 */       boolean interrupted = Thread.interrupted();
View Full Code Here

    * @return response of the invocation
    * @throws Throwable
    */
   public Object invoke(InvocationRequest invocationReq) throws Throwable
   {
      Invocation invocation = (Invocation) invocationReq.getParameter();
      Thread currentThread = Thread.currentThread();
      ClassLoader oldCl = currentThread.getContextClassLoader();
      ObjectName mbean = null;
      try
      {
         mbean = (ObjectName) Registry.lookup(invocation.getObjectName());

         /** Clustering **/
         long clientViewId = ((Long) invocation.getValue("CLUSTER_VIEW_ID")).longValue();
         HATarget target = (HATarget) beanMap.get(invocation.getObjectName());
         if(target == null)
         {
            // We could throw IllegalStateException but we have a race condition that could occur:
            // when we undeploy a bean, the cluster takes some time to converge
            // and to recalculate a new viewId and list of replicant for each HATarget.
View Full Code Here

      {
         NoSuchMethodException e = new NoSuchMethodException(actionName);
         throw new ReflectionException(e, actionName);
      }

      Invocation invocation = (Invocation) params[0];
      try
      {
         Object value = invoke(invocation);
         return value;
      }
View Full Code Here

TOP

Related Classes of org.jboss.invocation.Invocation

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.