public java.util.Properties | getJavaBeanProps(ConnectorDescriptor desc, java.lang.String connectionDefName, java.lang.String rarName)Parses the ra.xml for the Resource Adapter javabean properties.
Here the second parameter connectionDefName is not used and can
be null or any value.
It throws ConnectorRuntimeException if module dir is null or
corresponing rar is not deployed i.e invalid moduleDir parameter.
if(desc == null) {
throw new ConnectorRuntimeException("Invalid arguments");
}
/* ddVals -> Properties present in ra.xml
* introspectedVals -> All properties with values
* obtained by introspection of resource
* adapter javabean
* mergedVals -> merged props of raConfigPros and
* allraConfigPropsWithDefVals
*/
Set ddVals = desc.getConfigProperties();
Properties mergedVals = null;
String className = desc.getResourceAdapterClass();
Properties introspectedVals = null;
if(className != null && className.length() != 0) {
introspectedVals=configParserUtil.introspectJavaBean(
className,ddVals);
mergedVals = configParserUtil.mergeProps(ddVals,introspectedVals);
}
return mergedVals;
|