Package org.jboss.metadata.rar.spec

Examples of org.jboss.metadata.rar.spec.MessageListenerMetaData


   }

   private void assertInoundAdapter(InboundRaMetaData inboundRa) {
      assertNotNull(inboundRa.getMessageAdapter());
      assertNotNull(inboundRa.getMessageAdapter().getMessageListeners());
      MessageListenerMetaData msgListener = inboundRa.getMessageAdapter().getMessageListeners().get(0);
      assertNotNull(msgListener);
      assertTrue(msgListener.getType().endsWith("MessageListener"));
      assertTrue(msgListener.getActivationSpecType().getAsClass().endsWith("JmsActivationSpec"));
      assertNotNull(msgListener.getActivationSpecType().getRequiredConfigProps());
      assertFalse(msgListener.getActivationSpecType().getRequiredConfigProps().isEmpty());
      assertConfigPropsInAS(msgListener.getActivationSpecType());

   }
View Full Code Here


      createMessageListeners(md);
      for (Class asClass : activation.messageListeners())
      {
         ActivationspecMetaData asMeta = new ActivationspecMetaData();
         asMeta.setAsClass(annotation.getClassName());
         MessageListenerMetaData mlMeta = new MessageListenerMetaData();
         mlMeta.setActivationSpecType(asMeta);
         mlMeta.setType(asClass.getName());
         md.getRa().getInboundRa().getMessageAdapter().getMessageListeners().add(mlMeta);
      }
      return md;
   }
View Full Code Here

      if (imd == null)
         return false;
      if (imd.getMessageAdapter() == null || imd.getMessageAdapter().getMessageListeners() == null
            || imd.getMessageAdapter().getMessageListeners().size() == 0)
         return false;
      MessageListenerMetaData mlmd = imd.getMessageAdapter().getMessageListeners().get(0);
      if (mlmd.getType() == null || mlmd.getActivationSpecType() == null
            || mlmd.getActivationSpecType().getAsClass() == null)
         return false;
      return true;
   }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.rar.spec.MessageListenerMetaData

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.