geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sachin Patel <>
Subject Problem with o.a.g.deployment.Deployer
Date Tue, 02 May 2006 12:24:24 GMT
After debugging this morning why I can't deploy to a different  
configuration store, the source of the problem is the following...

In o.a.g.deployment.Deployer, in the call to

deploy(inPlace, planFile, moduleFile, null, true, null, null, null,  
null, null);

The last param is the configuration store, which is being passed in  
null, thus resolves later to...

  if (targetConfigurationStore != null) {
	AbstractName targetStoreName = new AbstractName(new URI 
         store = (ConfigurationStore) kernel.getGBean(targetStoreName);
  } else {
         store = (ConfigurationStore) stores.iterator().next();

The else statement picks up the "Local" configuration store, thus no  
matter what Target's you pass in, "Local" is always used.

  Aaron, I'm not sure if this is the problem you were referring to  
when you stated that "targets are being ignored"? Or wether you were  
referring to the DistributeCommand using only the first index of the  
passed targets, the rest being ignored.

- sachin

View raw message