Re: JCA 1.5 and ActivationSpec
Kevin Sutter <[email protected]> Thu, 9 Sep 2004 08:22:54 -0500
| Newsgroups | gmane.comp.java.sun.connector |
|---|---|
| Message-ID | <OF1E349558.17F1B5C6-ON86256F0A.00482189-86256F0A.00497FBE@us.ibm.com> |
The config-properties on an ActivationSpec do not have to be java.lang.String. Since the spec is not consistent in the handling of config-properties across the various object types (ResourceAdapter, ManagedConnectionFactory, ActivationSpec, and AdminObjects), it gets very confusing. There are some hints in the spec that indicate the type of properties that are allowed... 1) The properties defined for the ResourceAdapter JavaBean are supposed to be "inherited" by the ManagedConnectionFactory and ActivationSpec instances. Since the properties on the ResourceAdapter are defined as config-propertyType in the XSD, that would imply that the properties on an ActivationSpec has to support all of the basic java.lang.* types as defined by config-property-typeType. 2) Also, since the ActivationSpec is defined as JavaBean, any property that is defined with the appropriate getter/setter methods should be accessible via introspection, including complex object types. Although the actual setting of these complex object types might be difficult to handle in a generic sense. These type of properties may need extra assistance from the Resource Adapter's documentation or utilities. An example of this is the "destination" property as defined in section B.2.1.1 (last paragraph). ----------------------------------------------------------- Kevin Sutter, WebSphere Distributed (J2EE Connectors) mail: [email protected], Kevin Sutter/Rochester/IBM Stefan Krieger <stefan.krieger@C OMPORSYS.DE> To Sent by: "A [email protected] public list for cc J2EE Connector architecture Subject interest." JCA 1.5 and ActivationSpec <CONNECTOR-INTERE [email protected]> 09/08/2004 01:44 PM Please respond to "A public list for J2EE Connector architecture interest." Hello, Must all properties in bean ActivationSpec be type "java.lang.String"? I found nothing about it in the spec but all their examples are using Strings only. SunAS 8 SP1 throws exceptions if any other type (Boolean, Integer etc.) in the property setter is used. Can somebody shed some light on this? Thanks, Stefan =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff CONNECTOR-INTEREST". For general help, send email to [email protected] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff CONNECTOR-INTEREST". For general help, send email to [email protected] and include in the body of the message "help".