Title: [2459] branches/configid/openejb2/modules/openejb-builder/src/test/org/openejb/deployment/KernelHelper.java: new1 now builds OK
Revision
2459
Author
djencks
Date
2006-02-17 14:28:50 -0500 (Fri, 17 Feb 2006)

Log Message

new1 now builds OK

Modified Paths


Diff

Modified: branches/configid/openejb2/modules/openejb-builder/src/test/org/openejb/deployment/KernelHelper.java (2458 => 2459)

--- branches/configid/openejb2/modules/openejb-builder/src/test/org/openejb/deployment/KernelHelper.java	2006-02-17 08:36:04 UTC (rev 2458)
+++ branches/configid/openejb2/modules/openejb-builder/src/test/org/openejb/deployment/KernelHelper.java	2006-02-17 19:28:50 UTC (rev 2459)
@@ -107,11 +107,10 @@
         public ObjectName loadConfiguration(Artifact configId) throws NoSuchConfigException, IOException, InvalidConfigException {
             ObjectName configurationObjectName = Configuration.getConfigurationObjectName(configId);
             GBeanData configData = new GBeanData(configurationObjectName, Configuration.GBEAN_INFO);
-            configData.setAttribute("id", configId);
-            Map nameKeys = new HashMap();
-            nameKeys.put("domain", "test");
-            nameKeys.put("J2EEServer", "server");
-            configData.setAttribute("nameKeys", nameKeys);
+            Environment environment = new Environment();
+            environment.setConfigId(configId);
+            environment.getProperties().put(NameFactory.JSR77_BASE_NAME_PROPERTY, "geronimo.test:J2EEServer=geronimo");
+            configData.setAttribute("environment", environment);
             configData.setAttribute("gBeanState", NO_OBJECTS_OS);
 
             try {

Reply via email to