Currently I am working on a deployment client that can be used to deploy application to WebSphere ( 6 or 7) sung JSR88 API.

Based on the doc and sample snippet from http://publib.boulder.ibm.com/infoce...88_config.html, the code should be as follows

DeploymentFactoryManager dfm = DeploymentFactoryManager.getInstance();
Class deploymentFactory = Class.forName("com.ibm.ws.management.application.j2ee.deploy.spi. factories.DeploymentFactoryImpl");
DeploymentFactory deploymentFactoryInstance = (DeploymentFactory)deploymentFactory.newInstance() ;
dfm.registerDeploymentFactory(deploymentFactoryIns tance);
DeploymentManager wsDM = dfm.getDeploymentManager("deployer:WebSphere:" + host + ":" + port, "wasadmin", "welcome1");

DeploayableObject earObj = ?????????
DeploymentConfiguration dConfig = wsDM.createConfiguration(ear);
DDBeanRoot ddRoot = ear.getDDBeanRoot();

// Obtain root bean.
DConfigBeanRoot dcRoot = dConfig.getDConfigBeanRoot(ddRoot);

//Start configuration via DconfigBean from here
....

String[] xpaths = dcRoot.getXpaths();
if(xpaths != null)
{
for(int i=0; i xpaths.length; ++i)
{
DDBean[] ddBeanChild = ddRoot.getChildBean(xpaths);
if(ddBeanChild == null) {
continue;
}
for(int j=0; jddBeanChild.length; ++j)
{
DConfigBean cb = dcRoot.getDConfigBean(ddBeanChild[j]);
....
}
}
}

....
}

However the missing part is how to create the DeploymentObject (i.e. following line in above code snippiet)
DeploayableObject earObj = ?????????

From WebSphere documentation and the code base of installation, I could not find any information regarding how to create DeployableObject using IBM provided libraries. Anybody has idea howe to do it to make above code moving? Does IBM provide the DeployableObject and DDBean implementation in WebSphere's JSR88 support?

Thank you for any advice and comments.