Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9685

Seam JMS: CDI validator should be aware of JMS resource injections

XMLWordPrintable

    • Documentation (Ref Guide, User Guide, etc.)
    • A new feature has been added to the CDI validator making it aware of JMS resource injections. This ensures correct validation of JMS injections that also have a JMS destination.
    • Documented as Resolved Issue

      See http://docs.jboss.org/seam/3/jms/latest/reference/en-US/html/resource-injection.html

      The following JMS resources are now available for injection:
      
      javax.jms.Connection
      javax.jms.Session
      
      Destination-based resources:
      
      javax.jms.Topic
      javax.jms.Queue
      javax.jms.TopicPublisher
      javax.jms.QueueSender
      javax.jms.TopicSubscriber
      javax.jms.QueueReceiver
      

      If an injection has any type from the list above and also it has a qualifier JmsDestination then it should be ignored by CDI validator.

      Steps to verify:
      EXECUTE: Import https://svn.jboss.org/repos/jbosstools/trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/projects/SeamCoreTest
      EXECUTE: Open src/org/jboss/tools/seam/jms/validation/test/JmsResourceInjection.java
      ASSERT: There is a problem marker in line 17: @Inject Queue broken;
      ASSERT: There are no problem in other lines.

            alexeykazakov Alexey Kazakov
            alexeykazakov Alexey Kazakov
            Isaac Rooskov Isaac Rooskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: