If deployment plans are inside the archive (ear, war, etc.) they can be obtained from config-store.  If the deployment plan is supplied as an external file to the deployer and if the original file is not available, the only way to get any information on the configuration is from the Configuration GBeanData obtained from the kernel at runtime or from deserializing config.ser files under config-store.  For analyzing any problems after an application is deployed, deployment plans will certainly be helpful.

-Vamsi
On 11/16/05, David Jencks <[EMAIL PROTECTED]> wrote:

On Nov 16, 2005, at 4:10 AM, Vamsavardhana Reddy wrote:

> I am trying to reconstruct deployment plan from the Configuration
> GBeanData.

umm, why?

>
>  I have a code segment like the following.
>   ObjectName configName =
> Configuration.getConfigurationObjectName(configId);
>   GBeanData configData = kernel.getGBeanData(configName);
>
>  Once I have the GBeanData object, I am retreiving the attributes,
> references & any GBeans inside the configuration and printing out the
> information. With this procedure, I am able to reconstruct the
> deployment plan for some, but not all :(, of the configurations in
> Geronimo. Is there any other way of getting deployment plan out of
> configuration GBeanData object?
>

this will probably work for gbeans that came from a configuration
directly, rather than e.g. an ejb container gbean, and that do not have
any xml-attributes.  I don't think you will succeed in generating a
gbean configuration for something like an ejb container.  Again, what
is your goal?  This is very much akin to writing a java disassembler.

thanks
david jencks


Reply via email to