[jboss-jira] [JBoss JIRA] Assigned: (JBAS-6219) ManagementView.getTemplate() should return a new copy of the DeploymentTemplateInfo on every call

Charles Crouch (JIRA) jira-events at lists.jboss.org
Tue Mar 3 17:33:25 EST 2009


     [ https://jira.jboss.org/jira/browse/JBAS-6219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charles Crouch reassigned JBAS-6219:
------------------------------------

    Assignee: Scott M Stark  (was: Ian Springer)


Scott, you should now be able to replay Ian's steps, though you will have to work around EMBJOPR-86. Just click on the Queue type in the nav after you've created the first resource and you should be fine.

> 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: Scott M Stark
>
> 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