1 2 Previous Next 16 Replies Latest reply on Sep 20, 2012 11:46 AM by rakeshsagar Go to original post
      • 15. Re: Getting issues while undeploying VDB with Teiid 8.1.0 Final
        rareddy

        Rakesh,

        RAKESH BALGURI wrote:

         

        My code is being called after the start() method of the service is called.

        I am getting the AdminObject as follows in our code:

         

        ChorusVDBAdminProvider adminProvider = new ChorusVDBAdminProvider();
        Admin admin = adminProvider.getValue();

        Creating new instance will not get you access to the service created to your prior through proper lifecycle.  A service need to to do a particular job itself, like doing your deploy and undeploy based on other events or you can create another service which can do those tasks and make this adminprovider service dependent on it. So, you need to ask yourself is what are those events that trigger the deploy/undeploy and how can you capture them in a admin provider service or any other service that has access to admin provider.

         

        Ramesh..

        • 16. Re: Getting issues while undeploying VDB with Teiid 8.1.0 Final
          rakeshsagar

          Hi Ramesh,

           

          Thanks for your response. Appriciate your help.

          We followed a different approach of deploying the VDB and its working now.

           

          Thanks

          Rakesh.

          1 2 Previous Next