Package org.jboss.metadata

Examples of org.jboss.metadata.MessageDrivenMetaData


         // Call default init
         super.createService();

         // Map the bean methods
         Map map = new HashMap();
         MessageDrivenMetaData mdMetaData = (MessageDrivenMetaData)metaData;
         String type = mdMetaData.getMessagingType();
         if(type == null || type.length() == 0)
            type = MessageDrivenMetaData.DEFAULT_MESSAGING_TYPE;
         Class clazz = getClassLoader().loadClass(type);
         Method[] methods = clazz.getDeclaredMethods();
         for (int i = 0; i < methods.length; i++)
View Full Code Here


      }

      /** Helper to check if the tx type is TX_REQUIRED. */
      private boolean isTxRequired()
      {
         MessageDrivenMetaData md = (MessageDrivenMetaData)con.getBeanMetaData();
         return md.getMethodTransactionType() == MetaData.TX_REQUIRED;
      }
View Full Code Here

      return mdb;
   }

   protected MessageDrivenMetaData assertFullMDB(String ejbName, ApplicationMetaData applicationMetaData, Mode mode)
   {
      MessageDrivenMetaData mdb = assertMDB(ejbName + "EjbName", applicationMetaData);

      assertEquals(ejbName + "EjbClass", mdb.getEjbClass());
      assertEquals(ejbName + "MessagingType", mdb.getMessagingType());
      assertTrue(mdb.isContainerManagedTx());
      assertEquals(ejbName + "MessageDestinationType", mdb.getDestinationType());
      assertEquals(ejbName + "MessageDestinationLink", mdb.getDestinationLink());
      assertActivationConfigProperties(ejbName, 2, mdb.getActivationConfigProperties());
      assertEnvironment(ejbName, mdb, true, mode);
      assertMethodAttributes(ejbName, mdb);
      assertMethodPermissions(ejbName, 7, mdb);
      assertExcludedMethods(ejbName, mdb.getExcludedMethods());
      assertSecurityIdentity(ejbName, "SecurityIdentity", mdb.getSecurityIdentityMetaData(), true);
     
      return mdb;
   }
View Full Code Here

      return mdb;
   }

   private MessageDrivenMetaData assertNullMDB(String ejbName, ApplicationMetaData applicationMetaData)
   {
      MessageDrivenMetaData mdb = assertMDB(ejbName + "EjbName", applicationMetaData);
      assertEquals(ejbName+"EjbClass", mdb.getEjbClass());
      assertNotNull(mdb.getSecurityIdentityMetaData());

      assertTrue(mdb.isContainerManagedTx());
      assertNull(mdb.getMessagingType());
      assertNull(mdb.getDestinationType());
      assertNull(mdb.getDestinationLink());
      assertEquals(0, mdb.getActivationConfigProperties().size());
      assertNullEnvironment(mdb);
      assertDefaultMethodAttributes(ejbName, mdb);
      assertEmptyIterator(mdb.getPermissionMethods());
      assertEmptyIterator(mdb.getExcludedMethods());
     
      return mdb;
   }
View Full Code Here

      }
   }

   protected MessageDrivenMetaData assertMDB(String ejbName, ApplicationMetaData applicationMetaData)
   {
      MessageDrivenMetaData mdb = assertEnterpriseBean(ejbName, applicationMetaData, MessageDrivenMetaData.class);
      assertFalse(mdb.isSession());
      assertFalse(mdb.isEntity());
      assertTrue(mdb.isMessageDriven());
      return mdb;
   }
View Full Code Here

      ApplicationMetaData legacyMD = new ApplicationMetaData(result);
      BeanMetaData strictlyPooledMDB2 = legacyMD.getBeanByEjbName("StrictlyPooledMDB");
      assertNotNull(strictlyPooledMDB2);
      assertTrue(strictlyPooledMDB2.getClass()+" instanceof MessageDrivenMetaData", strictlyPooledMDB2 instanceof MessageDrivenMetaData);
      MessageDrivenMetaData strictlyPooledMDMD = (MessageDrivenMetaData) strictlyPooledMDB2;
      assertEquals("javax.jms.Queue", strictlyPooledMDMD.getDestinationType());
   }
View Full Code Here

      interceptors.add(InvokerInterceptor.class);
   }

   public MessageDrivenMetaData getMetaData()
   {
      MessageDrivenMetaData config =
         (MessageDrivenMetaData) container.getBeanMetaData();
      return config;
   }
View Full Code Here

      }

      /** Helper to check if the tx type is TX_REQUIRED. */
      private boolean isTxRequired()
      {
         MessageDrivenMetaData md = (MessageDrivenMetaData)con.getBeanMetaData();
         return md.getMethodTransactionType() == MetaData.TX_REQUIRED;
      }
View Full Code Here

         // Call default init
         super.createService();

         // Map the bean methods
         Map map = new HashMap();
         MessageDrivenMetaData mdMetaData = (MessageDrivenMetaData)metaData;
         String type = mdMetaData.getMessagingType();
         if(type == null || type.length() == 0)
            type = MessageDrivenMetaData.DEFAULT_MESSAGING_TYPE;
         Class clazz = getClassLoader().loadClass(type);
         Method[] methods = clazz.getDeclaredMethods();
         for (int i = 0; i < methods.length; i++)
View Full Code Here

/*     */     try
/*     */     {
/* 169 */       super.createService();
/*     */
/* 172 */       Map map = new HashMap();
/* 173 */       MessageDrivenMetaData mdMetaData = (MessageDrivenMetaData)this.metaData;
/* 174 */       String type = mdMetaData.getMessagingType();
/* 175 */       if ((type == null) || (type.length() == 0))
/* 176 */         type = "javax.jms.MessageListener";
/* 177 */       Class clazz = getClassLoader().loadClass(type);
/* 178 */       Method[] methods = clazz.getDeclaredMethods();
/* 179 */       for (int i = 0; i < methods.length; i++)
View Full Code Here

TOP

Related Classes of org.jboss.metadata.MessageDrivenMetaData

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.