3.7.2. Declaring a message destination
A message destination may be declared by specifying a
type Topic or Queue.
annotation as part of a producer field declaration of
The @Resource annotation specifies the metadata needed to obtain the topic or queue from the component environment.
@Produces @PaymentProcessor Queue paymentQueue;
@Produces @Prices Topic pricesTopic;
The bindings and deployment type of the resource are determined by the producer field declaration.