Package org.jboss.seam.jms.annotations

Examples of org.jboss.seam.jms.annotations.JmsDestination


        annotations = new HashSet<Annotation>();
        mappedAnnotations = new HashMap<Class<? extends Annotation>, Annotation>();
        for (Annotation a : decorated.getAnnotations()) {
            // Replace all annotations that define JmsDestination with the actual
            // JmsDestination so we can produce them generically
            JmsDestination d = a.annotationType().getAnnotation(JmsDestination.class);
            if (d != null) {
                mappedAnnotations.put(a.getClass(), null);
                mappedAnnotations.put(d.getClass(), d);
                annotations.add(d);
            } else {
                annotations.add(a);
            }
        }
View Full Code Here


   @Inject BeanManager beanManager;
  
    @Produces
    @JmsDestination
    public Topic getTopic(InjectionPoint ip, @Module Context c) throws NamingException {
    JmsDestination d = AnnotationInspector.getAnnotation(ip.getAnnotated(), JmsDestination.class, beanManager);
        return (Topic) c.lookup(d.jndiName());
    }
View Full Code Here

    }

    @Produces
    @JmsDestination
    public Queue getQueue(InjectionPoint ip, @Module Context c) throws NamingException {
    JmsDestination d = AnnotationInspector.getAnnotation(ip.getAnnotated(), JmsDestination.class, beanManager);
        return (Queue) c.lookup(d.jndiName());
    }
View Full Code Here

    Instance<Queue> anyQueue;

    @Produces
    @JmsDestination
    public TopicPublisher createTopicProducer(InjectionPoint ip, Session s) throws JMSException {
        JmsDestination d = getExpectedQualifier(JmsDestination.class, ip.getQualifiers());
        Topic t = anyTopic.select(d).get();
        return TopicPublisher.class.cast(s.createProducer(t));
    }
View Full Code Here

    }

    @Produces
    @JmsDestination
    public TopicSubscriber createTopicSubscriber(InjectionPoint ip, Session s) throws JMSException {
        JmsDestination d = getExpectedQualifier(JmsDestination.class, ip.getQualifiers());
        Topic t = anyTopic.select(d).get();
        return TopicSubscriber.class.cast(s.createConsumer(t));
    }
View Full Code Here

    }

    @Produces
    @JmsDestination
    public QueueSender createQueueSender(InjectionPoint ip, Session s) throws JMSException {
        JmsDestination d = getExpectedQualifier(JmsDestination.class, ip.getQualifiers());
        Queue q = anyQueue.select(d).get();
        return QueueSender.class.cast(s.createProducer(q));
    }
View Full Code Here

    }

    @Produces
    @JmsDestination
    public QueueReceiver createQueueReceiver(InjectionPoint ip, Session s) throws JMSException {
        JmsDestination d = getExpectedQualifier(JmsDestination.class, ip.getQualifiers());
        Queue q = anyQueue.select(d).get();
        return QueueReceiver.class.cast(s.createConsumer(q));
    }
View Full Code Here

TOP

Related Classes of org.jboss.seam.jms.annotations.JmsDestination

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.