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..
Hi Ramesh,
Thanks for your response. Appriciate your help.
We followed a different approach of deploying the VDB and its working now.
Thanks
Rakesh.