Examples of RemoteBindings


Examples of org.jboss.ejb3.annotation.RemoteBindings

            initParameterTypes = unadvisedMethod.getParameterTypes();
            initParameterValues = statefulInvocation.getArguments();
         }

         RemoteBinding binding = null;
         RemoteBindings bindings = this.getAnnotation(RemoteBindings.class);
         if (bindings != null)
            binding = bindings.value()[0];
         else
            binding = this.getAnnotation(RemoteBinding.class);

         StatefulContainerInvocation newStatefulInvocation = buildNewInvocation(
                 info, statefulInvocation, initParameterTypes,
View Full Code Here

Examples of org.jboss.ejb3.annotation.RemoteBindings

       * http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157770
       */
      log.warn("Populating JBoss-specific annotation metadata manually until done by deployers: " + this);

      // Obtain annotations
      RemoteBindings remoteBindings = this.getAnnotation(RemoteBindings.class);
      RemoteBinding remoteBinding = this.getAnnotation(RemoteBinding.class);
      RemoteHomeBinding remoteHomeBinding = this.getAnnotation(RemoteHomeBinding.class);
      LocalHomeBinding localHomeBinding = this.getAnnotation(LocalHomeBinding.class);
      //      LocalBinding localBinding = this.getAnnotation(LocalBinding.class); // < No LocalBindingMetaData?

      // Create a Set to hold RemoteBindings
      Set<RemoteBinding> remoteBindingsSet = new HashSet<RemoteBinding>();

      // Populate Set with Remote Bindings
      if (remoteBindings != null)
      {
         for (RemoteBinding binding : remoteBindings.value())
         {
            remoteBindingsSet.add(binding);
         }
      }
      if (remoteBinding != null)
View Full Code Here

Examples of org.jboss.ejb3.annotation.RemoteBindings

/* 706 */         initParameterTypes = unadvisedMethod.getParameterTypes();
/* 707 */         initParameterValues = statefulInvocation.getArguments();
/*     */       }
/*     */
/* 710 */       RemoteBinding binding = null;
/* 711 */       RemoteBindings bindings = (RemoteBindings)resolveAnnotation(RemoteBindings.class);
/* 712 */       if (bindings != null)
/* 713 */         binding = bindings.value()[0];
/*     */       else {
/* 715 */         binding = (RemoteBinding)resolveAnnotation(RemoteBinding.class);
/*     */       }
/* 717 */       StatefulContainerInvocation newStatefulInvocation = buildNewInvocation(info, statefulInvocation, initParameterTypes, initParameterValues);
/*     */
View Full Code Here

Examples of org.jboss.ejb3.annotation.RemoteBindings

/* 414 */     for (Class clazz : remotes)
/*     */     {
/* 416 */       if (!clazz.getName().equals(businessInterface.getName())) {
/*     */         continue;
/*     */       }
/* 419 */       RemoteBindings bindings = (RemoteBindings)((EJBContainer)container).getAnnotation(RemoteBindings.class);
/* 420 */       if (bindings != null)
/*     */       {
/* 423 */         return bindings.value()[0].jndiBinding();
/*     */       }
/*     */
/* 426 */       RemoteBinding binding = (RemoteBinding)((EJBContainer)container).getAnnotation(RemoteBinding.class);
/* 427 */       if (binding != null)
/*     */       {
View Full Code Here

Examples of org.jboss.ejb3.annotation.RemoteBindings

/*     */   @Deprecated
/*     */   public Object createRemoteProxy(Object id)
/*     */     throws Exception
/*     */   {
/* 119 */     RemoteBinding binding = null;
/* 120 */     RemoteBindings bindings = (RemoteBindings)getAnnotation(RemoteBindings.class);
/* 121 */     if (bindings != null)
/* 122 */       binding = bindings.value()[0];
/*     */     else {
/* 124 */       binding = (RemoteBinding)getAnnotation(RemoteBinding.class);
/*     */     }
/* 126 */     return createRemoteProxy(id, binding);
/*     */   }
View Full Code Here

Examples of org.jboss.ejb3.annotation.RemoteBindings

/* 437 */     Method unadvisedMethod = info.getUnadvisedMethod();
/* 438 */     if (unadvisedMethod.getName().equals("create"))
/*     */     {
/* 440 */       RemoteBinding binding = null;
/*     */
/* 442 */       RemoteBindings bindings = (RemoteBindings)resolveAnnotation(RemoteBindings.class);
/* 443 */       if (bindings != null)
/* 444 */         binding = bindings.value()[0];
/*     */       else {
/* 446 */         binding = (RemoteBinding)resolveAnnotation(RemoteBinding.class);
/*     */       }
/*     */
/* 450 */       StatelessRemoteProxyFactory factory = new StatelessRemoteProxyFactory(this, binding);
View Full Code Here

Examples of org.jboss.ejb3.annotation.RemoteBindings

    */
   @Deprecated
   protected RemoteBinding getRemoteBinding()
   {
      RemoteBinding binding = null;
      RemoteBindings bindings = getAnnotation(RemoteBindings.class);
      if (bindings != null)
         binding = bindings.value()[0];
      else
         binding = getAnnotation(RemoteBinding.class);
     
      return binding;
   }
View Full Code Here

Examples of org.jboss.ejb3.annotation.RemoteBindings

            initParameterTypes = unadvisedMethod.getParameterTypes();
            initParameterValues = statefulInvocation.getArguments();
         }

         RemoteBinding binding = null;
         RemoteBindings bindings = this.getAnnotation(RemoteBindings.class);
         if (bindings != null)
            binding = bindings.value()[0];
         else
            binding = this.getAnnotation(RemoteBinding.class);

         StatefulContainerInvocation newStatefulInvocation = buildNewInvocation(
                 info, statefulInvocation, initParameterTypes,
View Full Code Here

Examples of org.jboss.ejb3.annotation.RemoteBindings

      for (Class<?> clazz : remotes)
      {
         if (clazz.getName().equals(businessInterface.getName()))
         {
            // Check for declared @RemoteBindings
            RemoteBindings bindings = ((EJBContainer) container).getAnnotation(RemoteBindings.class);
            if (bindings != null)
            {
               // Encountered, return
               return bindings.value()[0].jndiBinding();
            }
            // Check for declared @RemoteBinding
            RemoteBinding binding = ((EJBContainer) container).getAnnotation(RemoteBinding.class);
            if (binding != null)
            {
View Full Code Here

Examples of org.jboss.ejb3.annotation.RemoteBindings

      for (Class<?> clazz : remotes)
      {
         if (clazz.getName().equals(businessInterface.getName()))
         {
            // Check for declared @RemoteBindings
            RemoteBindings bindings = ((EJBContainer) container).getAnnotation(RemoteBindings.class);
            if (bindings != null)
            {
               // Encountered, return
               return bindings.value()[0].jndiBinding();
            }
            // Check for declared @RemoteBinding
            RemoteBinding binding = ((EJBContainer) container).getAnnotation(RemoteBinding.class);
            if (binding != null)
            {
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.