[
https://issues.apache.org/jira/browse/QPID-3688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180484#comment-13180484
]
Weston M. Price commented on QPID-3688:
---------------------------------------
It's a good question actually. In terms of JCA, there is an ra.xml file that is
used as a 'template' by the application server. Listed in the ra.xml file are
the properties an AdminObject supports. Something along the lines of:
<adminobject>
<adminobject-interface>javax.jms.Destination</adminobject-interface>
<adminobject-class>
org.apache.qpid.ra.admin.QpidDestinationProxy</adminobject-class>
<config-property>
<config-property-name>destinationAddress </config-property-name>
<config-property-type>java.lang.String </config-property-type>
</config-property>
<config-property>
<config-property-name>destinationType</config-property-name>
<config-property-type>java.lang.String </config-property-type>
</config-property>
</adminobject>
So, based on this definition, when you configure/deploy an admin object, the
app server knows what properties are exposed and what to set after constructing
the AdminObject, which of course is the reason a default constructor is
required since the app server depends on the AdminObject conforming to the
JavaBean specification.
> AMQDestination and children should conform to the JavaBean pattern
> ------------------------------------------------------------------
>
> Key: QPID-3688
> URL: https://issues.apache.org/jira/browse/QPID-3688
> Project: Qpid
> Issue Type: Improvement
> Components: Java Client
> Affects Versions: 0.12
> Environment: All platforms.
> Reporter: Weston M. Price
> Assignee: Rajith Attapattu
> Fix For: Future
>
> Attachments: QPID-3688.patch
>
>
> In order to support deploying and managing AMQDestination's in JEE
> application servers, conformance to the JavaBean design pattern is preferred
> as many appellation servers have their own management infrastructure for
> supporting Administrative objects that require, at the very least, a default
> constructor to create and bootstrap the destination into the server address
> space.
> The AMQDestination and children classes should support this to make JEE
> integration easier and more consistent.
--
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:[email protected]