A couple of things in the JSR 88 API don't make sense to me - if anyone has definitive answers I would appreciate it.

On distribute(), what exactly is the "deploymentPlan" passed in? I am assuming that it is the tool's responsibility to pass in a File/InputStream containing the information written by DeploymentConfiguraton.save(OutputStream).

If this is the case, how is the information for an EAR module tied together?

As I understand EAR deployment:
* the tool constructs a J2eeApplicationObject from the EAR's DD
* the tool invokes DeploymentManager.createConfiguration() to
  construct the DeploymentConfiguration for the EAR
* for each DeployableObject (sub-module) in the EAR, the tool calls
  DeploymentConfiguration.getDConfigBeanRoot(DDBeanRoot) to get the
  DConfigBeanRoot that it uses to configure the sub-module

At this point things get fuzzy. Presumably the tool iterates over all these DConfigBeanRoot's and uses saveDConfigBean(OutputStream, DConfigBeanRoot) to save the configuration information. However, the tool gets to choose the location where the information is written (as it creates the OutputStream).

Now when the tool goes to distribute this application, it would pass the plugin the File/InputStream for the EAR and the File/InputStream for the EAR's deployment plan. How does it communicate to the plugin the location of the DD's for all the sub-modules?

--
Jeremy



Reply via email to