Details
-
Type:
Feature Request
-
Status: Resolved (View Workflow)
-
Priority:
Blocker
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 3.0.0.Beta1
-
Component/s: Injection
Description
From JSR-299-20090521.pdf:
3.7.2. Declaring a message destination
A message destination may be declared by specifying a
type Topic or Queue.
@Resource
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.
@Resource(name="java:global/env/jms/PaymentQueue")
@Produces @PaymentProcessor Queue paymentQueue;
@Resource(name="java:global/env/jms/Prices")
@Produces @Prices Topic pricesTopic;
The bindings and deployment type of the resource are determined by the producer field declaration.
Need to make sure @Resource works in all supported environments.