xaProps.put("JmsProviderAdapterJNDI.type", "java.lang.String");
MetaValue metaValue = this.compositeValueMap(xaProps);
propValues.put("config-property", metaValue);
propValues.put("config-property",
new MapCompositeValueSupport(new HashMap<String, MetaValue>(),
new MapCompositeMetaType(SimpleMetaType.STRING)));
// todo: how to set the specific domain?
//ApplicationManagedSecurityMetaData secDomain = new ApplicationManagedSecurityMetaData();
//props.get("security-domain").setValue(secDomain);
ComponentType compType = new ComponentType("ConnectionFactory", "NoTx");
createComponentTest("NoTxConnectionFactoryTemplate", propValues, "testNoTxCf", compType, jndiName);
// Validate the config-property
ManagementView mgtView = getManagementView();
ManagedComponent dsMC = getManagedComponent(mgtView, compType, jndiName);
ManagedProperty configProperty = dsMC.getProperty("config-property");
assertNotNull(configProperty);
MetaValue value = configProperty.getValue();
assertTrue("MapCompositeMetaType", value.getMetaType() instanceof MapCompositeMetaType);
MapCompositeValueSupport cValue = (MapCompositeValueSupport) value;
cValue.put("testKey", new SimpleValueSupport(SimpleMetaType.STRING, "testValue"));
mgtView.updateComponent(dsMC);
mgtView = getManagementView();
dsMC = getManagedComponent(mgtView, compType, jndiName);
configProperty = dsMC.getProperty("config-property");
assertNotNull(configProperty);
cValue = (MapCompositeValueSupport) configProperty.getValue();
assertNotNull(cValue.get("testKey"));
}