Package org.jboss.invocation

Examples of org.jboss.invocation.Invoker


    * themselves.
    */
   protected void setupInvokers() throws Exception
   {
      ObjectName oname = new ObjectName(invokerMetaData.getInvokerMBean());
      Invoker invoker = (Invoker) Registry.lookup(oname);
      if(invoker == null)
      {
         throw new RuntimeException("invoker is null: " + oname);
      }

View Full Code Here


   protected void startService()
      throws Exception
   {
      checkInvokerURL();
      Invoker delegateInvoker = new HttpInvokerProxy(invokerURL);

      // Export the Invoker interface
      ObjectName name = super.getServiceName();
      Registry.bind(name, delegateInvoker);
      log.debug("Bound Http invoker for JMX node");        
View Full Code Here

    */
   public Object createProxy(Object id, ObjectName targetName, ObjectName invokerName,
      String jndiName, String proxyBindingName,
      ArrayList interceptorClasses, ClassLoader loader, Class[] ifaces)
   {
      Invoker invoker = (Invoker) Registry.lookup(invokerName);
      if (invoker == null)
         throw new RuntimeException("Failed to find invoker for name: " + invokerName);
      return createProxy(id, targetName, invoker, jndiName, proxyBindingName, interceptorClasses, loader, ifaces, null);
   }
View Full Code Here

      // Implement local EJB calls
      else if (m.equals(GET_HANDLE))
      {
         int objectName = ((Integer) ctx.getObjectName()).intValue();
         String jndiName = (String) ctx.getValue(InvocationKey.JNDI_NAME);
         Invoker invoker = ctx.getInvoker();
         Object id = ctx.getCacheId();
         return createHandle(objectName, jndiName, invoker, id, ctx);
      }
      else if (m.equals(GET_EJB_HOME))
      {
View Full Code Here

/*     */
/*     */   protected void setupInvokers()
/*     */     throws Exception
/*     */   {
/* 250 */     ObjectName oname = new ObjectName(this.invokerMetaData.getInvokerMBean());
/* 251 */     Invoker invoker = (Invoker)Registry.lookup(oname);
/* 252 */     if (invoker == null)
/*     */     {
/* 254 */       throw new RuntimeException("invoker is null: " + oname);
/*     */     }
/*     */
View Full Code Here

/*     */     {
/* 234 */       log.trace("Using static retry properties");
/*     */     }
/*     */
/* 237 */     int retryCount = 0;
/* 238 */     Invoker newInvoker = null;
/* 239 */     while (this.retry == true)
/*     */     {
/*     */       try
/*     */       {
/* 243 */         Thread.sleep(this.sleepTime);
View Full Code Here

/*     */   }
/*     */
/*     */   protected void startService()
/*     */     throws Exception
/*     */   {
/* 195 */     Invoker delegateInvoker = createInvoker();
/* 196 */     Integer nameHash = new Integer(this.jmxInvokerName.hashCode());
/* 197 */     this.log.debug("Bound delegate: " + delegateInvoker + " for invoker=" + this.jmxInvokerName);
/*     */
/* 203 */     Registry.bind(nameHash, this.jmxInvokerName);
/*     */
View Full Code Here

/*     */
/* 354 */     InitialContext ctx = new InitialContext();
/*     */
/* 358 */     TransactionPropagationContextUtil.getTPCImporter();
/*     */
/* 363 */     Invoker delegateInvoker = createDelegateInvoker();
/*     */
/* 366 */     Registry.bind(this.support.getServiceName(), delegateInvoker);
/*     */
/* 369 */     exportCI();
/*     */
View Full Code Here

/*     */
/*     */   protected void startService()
/*     */     throws Exception
/*     */   {
/* 101 */     checkInvokerURL();
/* 102 */     Invoker delegateInvoker = new HttpInvokerProxy(this.invokerURL);
/*     */
/* 105 */     ObjectName name = super.getServiceName();
/* 106 */     Registry.bind(name, delegateInvoker);
/* 107 */     this.log.debug("Bound Http invoker for JMX node");
/*     */   }
View Full Code Here

/*     */
/*  83 */     if (m.equals(GET_HANDLE))
/*     */     {
/*  85 */       int objectName = ((Integer)ctx.getObjectName()).intValue();
/*  86 */       String jndiName = (String)ctx.getValue(InvocationKey.JNDI_NAME);
/*  87 */       Invoker invoker = ctx.getInvoker();
/*  88 */       Object id = ctx.getCacheId();
/*  89 */       return new StatefulHandleImpl(objectName, jndiName, invoker, ctx.getInvokerProxyBinding(), id, ctx.getValue("InvokerID"));
/*     */     }
/*     */
/*  97 */     if (m.equals(GET_EJB_HOME))
View Full Code Here

TOP

Related Classes of org.jboss.invocation.Invoker

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.