Examples of MessagePropertiesImpl


Examples of org.jboss.ejb3.annotation.impl.MessagePropertiesImpl

      List<MessagePropertiesMetaData> propertiesList = consumer.getMessageProperties();
      if (propertiesList != null)
      {
         for(MessagePropertiesMetaData properties : propertiesList)
         {
            MessagePropertiesImpl annotation = new MessagePropertiesImpl();
  
            String delivery = properties.getDelivery();
            if (delivery != null && delivery.equals("Persistent"))
               annotation.setDelivery(DeliveryMode.PERSISTENT);
            else
               annotation.setDelivery(DeliveryMode.NON_PERSISTENT);
  
            Integer priority = properties.getPriority();
            if (priority != null)
               annotation.setDelivery(DeliveryMode.PERSISTENT);
  
            String interfac = properties.getClassName();
            if (interfac != null)
            {
               Class<?> clazz = di.getClassLoader().loadClass(interfac);
               annotation.setInterface(clazz);
            }
  
            MethodAttributeMetaData method = properties.getMethod();
            addAnnotations(MessageProperties.class, annotation, container, method);
         }
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.MessagePropertiesImpl

   protected void registerProducers() throws Exception
   {
      Destination dest = (Destination) getInitialContext().lookup(getDestination());
      MessageProperties props = (MessageProperties) resolveAnnotation(MessageProperties.class);
      if (props == null) props = new MessagePropertiesImpl();
      for (Class<?> producer : getBusinessInterfaces())
      {
         log.debug("Producer: " + producer.getName());
         ProducerFactory producerFactory = null;
         if (producer.isAnnotationPresent(Local.class))
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.MessagePropertiesImpl

      List<MessagePropertiesMetaData> propertiesList = consumer.getMessageProperties();
      if (propertiesList != null)
      {
         for(MessagePropertiesMetaData properties : propertiesList)
         {
            MessagePropertiesImpl annotation = new MessagePropertiesImpl();
  
            String delivery = properties.getDelivery();
            if (delivery != null && delivery.equals("Persistent"))
               annotation.setDelivery(DeliveryMode.PERSISTENT);
            else
               annotation.setDelivery(DeliveryMode.NON_PERSISTENT);
  
            Integer priority = properties.getPriority();
            if (priority != null)
               annotation.setDelivery(DeliveryMode.PERSISTENT);
  
            String interfac = properties.getClassName();
            if (interfac != null)
            {
               Class<?> clazz = di.getClassLoader().loadClass(interfac);
               annotation.setInterface(clazz);
            }
  
            MethodAttributeMetaData method = properties.getMethod();
            addAnnotations(MessageProperties.class, annotation, container, method);
         }
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.MessagePropertiesImpl

      List<MessagePropertiesMetaData> propertiesList = consumer.getMessageProperties();
      if (propertiesList != null)
      {
         for(MessagePropertiesMetaData properties : propertiesList)
         {
            MessagePropertiesImpl annotation = new MessagePropertiesImpl();
  
            String delivery = properties.getDelivery();
            if (delivery != null && delivery.equals("Persistent"))
               annotation.setDelivery(DeliveryMode.PERSISTENT);
            else
               annotation.setDelivery(DeliveryMode.NON_PERSISTENT);
  
            Integer priority = properties.getPriority();
            if (priority != null)
               annotation.setDelivery(DeliveryMode.PERSISTENT);
  
            String interfac = properties.getClassName();
            if (interfac != null)
            {
               Class<?> clazz = di.getClassLoader().loadClass(interfac);
               annotation.setInterface(clazz);
            }
  
            MethodAttributeMetaData method = properties.getMethod();
            addAnnotations(MessageProperties.class, annotation, container, method);
         }
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.MessagePropertiesImpl

      List<MessagePropertiesMetaData> propertiesList = consumer.getMessageProperties();
      if (propertiesList != null)
      {
         for(MessagePropertiesMetaData properties : propertiesList)
         {
            MessagePropertiesImpl annotation = new MessagePropertiesImpl();
  
            String delivery = properties.getDelivery();
            if (delivery != null && delivery.equals("Persistent"))
               annotation.setDelivery(DeliveryMode.PERSISTENT);
            else
               annotation.setDelivery(DeliveryMode.NON_PERSISTENT);
  
            Integer priority = properties.getPriority();
            if (priority != null)
               annotation.setDelivery(DeliveryMode.PERSISTENT);
  
            String interfac = properties.getClassName();
            if (interfac != null)
            {
               Class<?> clazz = di.getClassLoader().loadClass(interfac);
               annotation.setInterface(clazz);
            }
  
            MethodAttributeMetaData method = properties.getMethod();
            addAnnotations(MessageProperties.class, annotation, container, method);
         }
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.MessagePropertiesImpl

   protected void registerProducers() throws Exception
   {
      Destination dest = (Destination) getInitialContext().lookup(getDestination());
      MessageProperties props = (MessageProperties) resolveAnnotation(MessageProperties.class);
      if (props == null) props = new MessagePropertiesImpl();
      for (Class<?> producer : getBusinessInterfaces())
      {
         log.debug("Producer: " + producer.getName());
         ProducerFactory producerFactory = null;
         if (producer.isAnnotationPresent(Local.class))
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.MessagePropertiesImpl

      List<MessagePropertiesMetaData> propertiesList = consumer.getMessageProperties();
      if (propertiesList != null)
      {
         for(MessagePropertiesMetaData properties : propertiesList)
         {
            MessagePropertiesImpl annotation = new MessagePropertiesImpl();
  
            String delivery = properties.getDelivery();
            if (delivery != null && delivery.equals("Persistent"))
               annotation.setDelivery(DeliveryMode.PERSISTENT);
            else
               annotation.setDelivery(DeliveryMode.NON_PERSISTENT);
  
            Integer priority = properties.getPriority();
            if (priority != null)
               annotation.setDelivery(DeliveryMode.PERSISTENT);
  
            String interfac = properties.getClassName();
            if (interfac != null)
            {
               Class<?> clazz = di.getClassLoader().loadClass(interfac);
               annotation.setInterface(clazz);
            }
  
            MethodAttributeMetaData method = properties.getMethod();
            addAnnotations(MessageProperties.class, annotation, container, method);
         }
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.MessagePropertiesImpl

   protected void registerProducers() throws Exception
   {
      Destination dest = (Destination) getInitialContext().lookup(getDestination());
      MessageProperties props = (MessageProperties) resolveAnnotation(MessageProperties.class);
      if (props == null) props = new MessagePropertiesImpl();
      for (Class<?> producer : getBusinessInterfaces())
      {
         log.debug("Producer: " + producer.getName());
         ProducerFactory producerFactory = null;
         if (producer.isAnnotationPresent(Local.class))
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.MessagePropertiesImpl

         MessageProperties mProps = (MessageProperties)methods[i].getAnnotation(MessageProperties.class);
         if (mProps != null)
         {
            try
            {
               methodMap.put(new Long(MethodHashing.methodHash(methods[i])), new MessagePropertiesImpl(mProps));
            }
            catch (Exception e)
            {
               throw new RuntimeException(e);
            }
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.MessagePropertiesImpl

      List<MessagePropertiesMetaData> propertiesList = consumer.getMessageProperties();
      if (propertiesList != null)
      {
         for(MessagePropertiesMetaData properties : propertiesList)
         {
            MessagePropertiesImpl annotation = new MessagePropertiesImpl();
  
            String delivery = properties.getDelivery();
            if (delivery != null && delivery.equals("Persistent"))
               annotation.setDelivery(DeliveryMode.PERSISTENT);
            else
               annotation.setDelivery(DeliveryMode.NON_PERSISTENT);
  
            Integer priority = properties.getPriority();
            if (priority != null)
               annotation.setDelivery(DeliveryMode.PERSISTENT);
  
            String interfac = properties.getClassName();
            if (interfac != null)
            {
               Class<?> clazz = di.getClassLoader().loadClass(interfac);
               annotation.setInterface(clazz);
            }
  
            MethodAttributeMetaData method = properties.getMethod();
            addAnnotations(MessageProperties.class, annotation, container, method);
         }
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.