Package org.jboss.ejb3.annotation

Examples of org.jboss.ejb3.annotation.LocalBinding


   }

   private static String getLocalJndiName(JBossEnterpriseBeanMetaData ejb, Class<?> ejbClass)
   {
      // See if local binding is explicitly-defined
      LocalBinding localBinding = ejbClass.getAnnotation(LocalBinding.class);

      // If none specified
      if (localBinding == null || (localBinding.jndiBinding() != null && localBinding.jndiBinding().trim().length() == 0))
      {
         String name = ejb.getLocalJndiName();
         return name;
      }
      // Local Binding was explicitly-specified, use it
      else
      {
         return localBinding.jndiBinding();
      }
   }
View Full Code Here


      return proxyFactory.createProxyEjb21(id, businessInterfaceType);
   }
  
   public Object createProxyLocalEjb21(Object id, String businessInterfaceType) throws Exception
   {
      LocalBinding binding = this.getAnnotation(LocalBinding.class);
      return this.createProxyLocalEjb21(id,binding, businessInterfaceType);
   }
View Full Code Here

         {
            initParameterTypes = unadvisedMethod.getParameterTypes();
            initParameterValues = args;
         }

         LocalBinding binding = this.getAnnotation(LocalBinding.class);

         StatefulLocalProxyFactory factory = new StatefulLocalProxyFactory(this, binding);
         factory.init();

         Object proxy = factory.createProxyEjb21(initParameterTypes,
View Full Code Here

   public Object localHomeInvoke(Method method, Object[] args) throws Throwable
   {
      if (method.getName().equals("create"))
      {
         LocalBinding binding = this.getAnnotation(LocalBinding.class);

         // FIXME: why this binding? Could be another one. (there is only one local binding, but that's another bug)

         StatelessLocalProxyFactory factory = this.getProxyFactory(binding);
View Full Code Here

   public Object localHomeInvoke(Method method, Object[] args) throws Throwable
   {
      if (method.getName().equals("create"))
      {
         LocalBinding binding = this.getAnnotation(LocalBinding.class);

         // FIXME: why this binding? Could be another one. (there is only one local binding, but that's another bug)

         StatelessLocalProxyFactory factory = this.getProxyFactory(binding);
View Full Code Here

      return proxyFactory.createProxyEjb21(id, businessInterfaceType);
   }
  
   public Object createProxyLocalEjb21(Object id, String businessInterfaceType) throws Exception
   {
      LocalBinding binding = this.getAnnotation(LocalBinding.class);
      return this.createProxyLocalEjb21(id,binding, businessInterfaceType);
   }
View Full Code Here

         {
            initParameterTypes = unadvisedMethod.getParameterTypes();
            initParameterValues = args;
         }

         LocalBinding binding = this.getAnnotation(LocalBinding.class);

         StatefulLocalProxyFactory factory = new StatefulLocalProxyFactory(this, binding);
         factory.init();

         Object proxy = factory.createProxyEjb21(initParameterTypes,
View Full Code Here

      return proxyFactory.createProxyEjb2x((Serializable) id);
   }

   public Object createProxyLocalEjb21(Object id) throws Exception
   {
      LocalBinding binding = this.getAnnotation(LocalBinding.class);
      return this.createProxyLocalEjb21(id, binding);
   }
View Full Code Here

    * @return
    * @throws Exception
    */
   public Object createProxyLocalEjb21(String businessInterfaceType) throws Exception
   {
      LocalBinding binding = this.getAnnotation(LocalBinding.class);
      return this.createProxyLocalEjb21(binding, businessInterfaceType);
   }
View Full Code Here

      return proxyFactory.createProxyEjb2x((Serializable) id);
   }

   public Object createProxyLocalEjb21(Object id) throws Exception
   {
      LocalBinding binding = this.getAnnotation(LocalBinding.class);
      return this.createProxyLocalEjb21(id, binding);
   }
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.annotation.LocalBinding

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.