createRoles(configurationUpdateReport, name, sendRoles, consumeRoles, createNonDurableRoles, deleteNonDurableRoles, createDurableRoles, deleteDurableRoles);
try
{
ManagedOperation operation = ManagementSupport.getOperation(view, JMSConstants.Topic.COMPONENT_NAME,
"updateTopicConfiguration", JMSConstants.Topic.COMPONENT_TYPE);
operation.invoke(new SimpleValueSupport(SimpleMetaType.STRING, resourceContext.getResourceKey()),
new SimpleValueSupport(SimpleMetaType.STRING, jndiName),
new SimpleValueSupport(SimpleMetaType.STRING, DLA),
new SimpleValueSupport(SimpleMetaType.STRING, expiryAddress),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, maxSize),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, pageSize),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, pageMaxCacheSize),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, maxDeliveryAttempts),
new SimpleValueSupport(SimpleMetaType.LONG_PRIMITIVE, redeliveryDelay),
new SimpleValueSupport(SimpleMetaType.BOOLEAN_PRIMITIVE, lastValueQueue),
new SimpleValueSupport(SimpleMetaType.LONG_PRIMITIVE, redistributionDelay),
new SimpleValueSupport(SimpleMetaType.BOOLEAN_PRIMITIVE, sendToDLAOnNoRoute),
new SimpleValueSupport(SimpleMetaType.STRING, addressFullMessagePolicy),
new SimpleValueSupport(SimpleMetaType.STRING, sendRoles.toString()),
new SimpleValueSupport(SimpleMetaType.STRING, consumeRoles.toString()),
new SimpleValueSupport(SimpleMetaType.STRING, createDurableRoles.toString()),
new SimpleValueSupport(SimpleMetaType.STRING, deleteDurableRoles.toString()),
new SimpleValueSupport(SimpleMetaType.STRING, createNonDurableRoles.toString()),
new SimpleValueSupport(SimpleMetaType.STRING, deleteNonDurableRoles.toString()));
}
catch (Exception e)
{
configurationUpdateReport.setStatus(ConfigurationUpdateStatus.FAILURE);
configurationUpdateReport.setErrorMessage(e.getMessage());