You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Weston M. Price (JIRA)" <ji...@apache.org> on 2011/03/09 08:27:59 UTC

[jira] Created: (QPID-3131) AMQConnectionFactory getObjectInstance does not recognize AMQDestination

AMQConnectionFactory getObjectInstance does not recognize AMQDestination
------------------------------------------------------------------------

                 Key: QPID-3131
                 URL: https://issues.apache.org/jira/browse/QPID-3131
             Project: Qpid
          Issue Type: Bug
          Components: Java Client
    Affects Versions: 0.11
         Environment: All platforms. Java cilent.
            Reporter: Weston M. Price
             Fix For: 0.11


Currently the AMQConnectionFactory does not allow for AMQDestination to be created in getObjectInstance. AMQDestination specifies AMQConnectionFactory as it's ObjectFactory, however, when an attempt is made to recreate the AMQDestination null is returned being that the AMQConnectionFactory does not provide for this type. This came up as a result of work on the JCA admin objects for destinations in the JCA adapter.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-3131) AMQConnectionFactory getObjectInstance does not recognize AMQDestination

Posted by "Weston M. Price (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Weston M. Price updated QPID-3131:
----------------------------------

    Attachment: qpid-3131.patch

Patch for QPID-3131

> AMQConnectionFactory getObjectInstance does not recognize AMQDestination
> ------------------------------------------------------------------------
>
>                 Key: QPID-3131
>                 URL: https://issues.apache.org/jira/browse/QPID-3131
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.11
>         Environment: All platforms. Java cilent.
>            Reporter: Weston M. Price
>             Fix For: 0.11
>
>         Attachments: qpid-3131.patch
>
>
> Currently the AMQConnectionFactory does not allow for AMQDestination to be created in getObjectInstance. AMQDestination specifies AMQConnectionFactory as it's ObjectFactory, however, when an attempt is made to recreate the AMQDestination null is returned being that the AMQConnectionFactory does not provide for this type. This came up as a result of work on the JCA admin objects for destinations in the JCA adapter.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Updated] (QPID-3131) AMQConnectionFactory getObjectInstance does not recognize AMQDestination

Posted by "Robbie Gemmell (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robbie Gemmell updated QPID-3131:
---------------------------------

    Fix Version/s:     (was: 0.11)
                   Future

Updating with an unreleased version as fix-for.
                
> AMQConnectionFactory getObjectInstance does not recognize AMQDestination
> ------------------------------------------------------------------------
>
>                 Key: QPID-3131
>                 URL: https://issues.apache.org/jira/browse/QPID-3131
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.11
>         Environment: All platforms. Java cilent.
>            Reporter: Weston M. Price
>             Fix For: Future
>
>         Attachments: qpid-3131.patch
>
>
> Currently the AMQConnectionFactory does not allow for AMQDestination to be created in getObjectInstance. AMQDestination specifies AMQConnectionFactory as it's ObjectFactory, however, when an attempt is made to recreate the AMQDestination null is returned being that the AMQConnectionFactory does not provide for this type. This came up as a result of work on the JCA admin objects for destinations in the JCA adapter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-3131) AMQConnectionFactory getObjectInstance does not recognize AMQDestination

Posted by "Weston M. Price (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008799#comment-13008799 ] 

Weston M. Price commented on QPID-3131:
---------------------------------------

The original description of this bug was incorrect. In essence, the real issue is that when using the ADDR syntax or when the exchange class cannot be determined, the AMQDestination class will construct an AMQAnyDestination. By default, all destinations use the AMQConnectionFactory as the javax.naming.spi.ObjectFactory. However, the AMQConnectionFactory did not provide for the creation of an AMQAnyDestination in getObjectInstance. The attached patch (qpid-3131.patch) addresses this. A unit test has been added to the ConnectionFactoryTest testing the new behavior.

> AMQConnectionFactory getObjectInstance does not recognize AMQDestination
> ------------------------------------------------------------------------
>
>                 Key: QPID-3131
>                 URL: https://issues.apache.org/jira/browse/QPID-3131
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.11
>         Environment: All platforms. Java cilent.
>            Reporter: Weston M. Price
>             Fix For: 0.11
>
>         Attachments: qpid-3131.patch
>
>
> Currently the AMQConnectionFactory does not allow for AMQDestination to be created in getObjectInstance. AMQDestination specifies AMQConnectionFactory as it's ObjectFactory, however, when an attempt is made to recreate the AMQDestination null is returned being that the AMQConnectionFactory does not provide for this type. This came up as a result of work on the JCA admin objects for destinations in the JCA adapter.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org