Uploaded image for project: 'Seam JMS'
  1. Seam JMS
  2. SEAMJMS-2

Message Destinations may be declared by specifying a @Resource annotation as part of a producer field

    Details

      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.

        Gliffy Diagrams

          Activity

          Hide
          jganoff Jordan Ganoff added a comment -

          Need to make sure @Resource works in all supported environments.

          Show
          jganoff Jordan Ganoff added a comment - Need to make sure @Resource works in all supported environments.
          Hide
          meetoblivion John Ament added a comment -

          As I've noted prior, this should be marked "Rejected" as this is native support within the App Server itself, not the module. Based on feedback I've seen, resource producer fields can only be dependent.

          Show
          meetoblivion John Ament added a comment - As I've noted prior, this should be marked "Rejected" as this is native support within the App Server itself, not the module. Based on feedback I've seen, resource producer fields can only be dependent.
          Hide
          meetoblivion John Ament added a comment -

          I've confirmed that jndi.properties on the class adds in appropriate support @Resource injection, assuming you have a JNDI provider as well. Marking this as resolved for Alpha2.

          Show
          meetoblivion John Ament added a comment - I've confirmed that jndi.properties on the class adds in appropriate support @Resource injection, assuming you have a JNDI provider as well. Marking this as resolved for Alpha2.

            People

            • Assignee:
              meetoblivion John Ament
              Reporter:
              jganoff Jordan Ganoff
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Time Spent - 30 minutes Remaining Estimate - 3 hours, 30 minutes
                3h 30m
                Logged:
                Time Spent - 30 minutes Remaining Estimate - 3 hours, 30 minutes
                30m

                  Development