@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());
}
@Produces
@JmsDestination
public Queue getQueue(InjectionPoint ip, @Module Context c) throws NamingException {