2 Replies Latest reply on Apr 19, 2007 11:40 AM by starksm64

    Lookup a particular ManagedComponent in a ManagementView

      Should or will there be a method in ManagementView to get a single ManagedComponent by name. Just like the

      protected ManagedComponent getManagedComponent(ManagementView mgtView,
       ComponentType type, String name)
       throws Exception
      
      
      in the ProfileServiceUnitTestCase?
      
      Thanks
      
      Mark
      


        • 1. Re: Lookup a particular ManagedComponent in a ManagementView
          starksm64

          A ManagedComponent getManagedComponent(ComponentType type, String name) could be added. The component name is not something that will be known in general though, so I'm not sure how useful in general this would be. The testcase has to know how the name is derived from the deployment, and currently this is the deployment descriptor. That will change when the jca deployer changes.

          • 2. Re: Lookup a particular ManagedComponent in a ManagementView
            starksm64

             

            "bytor99999" wrote:

            So in our project, we would have already gotten all the names, then later when the user wants to update one thing, then the method will come in handy. The other option is that in our code we have that same code that is in the UnitTest.


            Yeah, ok, I guess that would be the normal interaction for an admin tool. I'll add the method.