I've been trying to add some tests for bean validation of JCA
ActivationSpec objects, but I've having trouble figuring out where these
objects get activated. They get created as GBeans in the
ConnectorModuleBuilder, but not really added as beans to the module, but
rather set as a map in the ResourceAdaptorModuleImpl instance. However,
I don't see that that map is actually used for anything and there's no
obvious activation point.
Ideally, these objects should be validated when the configuration is
activated, so perhaps the appropriate solution would be to have the
ResourceAdaptorModuleImpl GBean implement GBeanLifeCycle and validate
all of the ActivationSpecs in the ActivationSpecInfoMap. Does this seem
like a reasonable approach?
Rick
- ActivationSpecs and Geronimo. Rick McGuire
-