Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-362

Problem with proxies for ConnectionFactories

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-M3
    • Component/s: None
    • Labels:
      None

      Description

      The ActiveMQ Connector is being deployed with the connectionfactory-interface being set to javax.jms.ConnectionFactory which is a superclass of QueueConnectionFactory and TopicConnectionFactory. A resource-ref that references this with the interface defined as one of the subclasses does not work as the generated proxy does not implement the subclasses.

      Being able to deploy a single instance of the superclass seems useful but we need to verify if that is compliant. If it is, then we would also need to ensure the proxy implements the appropriate interfaces (specifically the subclass being requested).

      Adding proxies is useful in that allows access to the resource to be shut off or suspended in repsonse to the target's lifecycle. However, in some cases those proxies may be passed back to the resource and may cause problems unless they are unwrapped to expose the original object.

        Attachments

          Activity

            People

            • Assignee:
              djencks David Jencks
              Reporter:
              jboynes Jeremy Boynes
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: