Hi
This is not new. This was earlier sent to the 322 EG in 2010 (attached).
Now that we have the MR vehicle, could we please fix this
errata?
Thanks to Wilson for reporting this errata earlier.
Errata:
As part of the EoD related changes in Connector 1.6, the spec had made
it optional(in Section 18.7) for an ActivationSpec JavaBean to
implement the javax.resource.spi.ActivationSpec interface. However this
prevents such a JavaBean to be provided by the application server
during endpoint activation/deactivation/transaction recovery as the
ResourceAdapter interface requires the activation spec to be an
instance of the ActivationSpec interface.
ResourceAdapter.endpointActivation(MessageEndpointFactory
endpointFactory, ActivationSpec spec) [1]
As a clarification, An @Activation JavaBean after this change, like all
other JavaBeans listed in Section 5.3.7.5, can have Bean Validation
annotations placed on them.
Impact:
The example in the 1.6 spec already implements ActivationSpec. All
implementations would have required the @Activation annotated JavaBean
to implement the ActivationSpec interface anyway to support [1]. So
this is not a backward incompatible change but an errata to be fixed in
the spec.
Spec impact:
To fix this, we need to remove the optional phrase in 18.7 and make it
mandatory for a JavaBean that is annotated with the @Activation
annotation to implement the ActivationSpec interface.
Thanks
--Siva.
[1]
http://java.sun.com/javaee/6/docs/api/javax/resource/spi/ResourceAdapter.html#endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory,%20javax.resource.spi.ActivationSpec)
attached mail follows:
- message/rfc822 attachment: stored