Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2486

setupDLQConnection() uses incorrect class type for Util.lookup()

XMLWordPrintable

      I'm not sure about the JMS version number. I'm using JBoss 4.0.3SP1.

      In AbstractDLQHandler.java, line 132 reads:
      QueueConnectionFactory qcf = (QueueConnectionFactory) Util.lookup(ctx,
      queueFactoryRef, TopicConnectionFactory.class);
      ^^^^

      but should read:
      QueueConnectionFactory qcf = (QueueConnectionFactory) Util.lookup(ctx,
      queueFactoryRef, QueueConnectionFactory.class);
      ^^^^^^

      This causes the lookup to fail reliably.

      I'm hitting this code because I'm using the demo for JBoss/WebSphereMQ integration. The extra configuration for WebSphereMQ winds up triggering the GenericDLQHandler. I don't know how many use cases are affected by this, but this is a critical bug for me. There is no workaround besides using a custom-built jms-ra.jar which is something I'd rather not maintain.

      Obviously, this change also makes the 'import ...TopicConnectionFactory' statement superfluous.

              Unassigned Unassigned
              pamdirac_jira John McNair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified