[jboss-jira] [JBoss JIRA] Assigned: (JBAS-6227) Only way to remove a managedcomponent is to remove its deployment

Scott M Stark (JIRA) jira-events at lists.jboss.org
Wed Feb 18 11:35:44 EST 2009


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

Scott M Stark reassigned JBAS-6227:
-----------------------------------

    Assignee: Emanuel Muckenhuber  (was: Scott M Stark)


Assign to Emanuel in case we need spi changes

> Only way to remove a managedcomponent is to remove its deployment
> -----------------------------------------------------------------
>
>                 Key: JBAS-6227
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6227
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: ProfileService
>            Reporter: Charles Crouch
>            Assignee: Emanuel Muckenhuber
>             Fix For: JBossAS-5.1.0.Beta1
>
>
> Right now I'm using the following to remove a component:
> ManagementView mgtView = ProfileServiceFactory.getCurrentProfileView();
> ManagedComponent managedComponent = getManagedComponent();
> ManagedDeployment deployment = managedComponent.getDeployment();
> mgtView.removeDeployment(deployment.getName(), ManagedDeployment.DeploymentPhase.APPLICATION);
> mgtView.process();
> 	
> But if you have other things defined in the deployment, e.g. the hsqldb-ds.xml deployment contains jboss:service=Hypersonic,database=localDB service as well as the datasource, you end up blowing the whole lot away.
> There is an api on the deployment which *looks* like it would help, but replacing:
> mgtView.removeDeployment(deployment.getName(), ManagedDeployment.DeploymentPhase.APPLICATION);
> with
> deployment.removeComponent(managedComponent.getName());	
> appears to remove nothing.

-- 
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