[jboss-jira] [JBoss JIRA] Assigned: (JBAS-6219) ManagementView.getTemplate() should return a new copy of the DeploymentTemplateInfo on every call
Scott M Stark (JIRA)
jira-events at lists.jboss.org
Fri Nov 21 23:55:36 EST 2008
[ https://jira.jboss.org/jira/browse/JBAS-6219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott M Stark reassigned JBAS-6219:
-----------------------------------
Assignee: Ian Springer (was: Scott M Stark)
> ManagementView.getTemplate() should return a new copy of the DeploymentTemplateInfo on every call
> -------------------------------------------------------------------------------------------------
>
> Key: JBAS-6219
> URL: https://jira.jboss.org/jira/browse/JBAS-6219
> Project: JBoss Application Server
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: ProfileService
> Reporter: Ian Springer
> Assignee: Ian Springer
>
> In our create-resource code, we do the following:
> DeploymentTemplateInfo template = managementView.getTemplate(templateName);
> Map<String, ManagedProperty> managedProperties = template.getProperties();
> // Update managedProperties according to the properties the user entered in the EmbJopr UI.
> managementView.applyTemplate(ManagedDeployment.DeploymentPhase.APPLICATION, resourceName, template);
> managementView.process();
> This all works fine the first time through. The problem is the next time we execute the above code using the same templateName, getTemplate(() returns the same DeploymentTemplateInfo from the previous call (with the updates we made to its managedProperties). Instead, it should return a new "fresh" DeploymentTemplateInfo object that contains only the properties from the original template.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list