* The naming resources for this web application.
*/
private NamingResources namingResources = null;
-
+ private ObjectName onameNamingResoucres;
/**
* The message destinations for this web application.
namingResources.setContainer(this);
support.firePropertyChange("namingResources",
oldNamingResources, this.namingResources);
-
+
+ unregister(onameNamingResoucres);
+ onameNamingResoucres = register(namingResources,
+ "type=NamingResources," + getObjectNameKeyProperties());
}
sequenceNumber++);
broadcaster.sendNotification(notification);
+ unregister(onameNamingResoucres);
+
synchronized (instanceListenersLock) {
instanceListeners = new String[0];
}
this.addLifecycleListener(new TldConfig());
}
+ // Register the naming resources
+ if (namingResources != null) {
+ onameNamingResoucres = register(namingResources,
+ "type=NamingResources," + getObjectNameKeyProperties());
+ }
+
// Send j2ee.object.created notification
if (this.getObjectName() != null) {
Notification notification = new Notification(
// Register the MBeanFactory
onameMBeanFactory = register(new MBeanFactory(), "type=MBeanFactory");
+ // Register the naming resources
+ onameNamingResoucres = register(globalNamingResources,
+ "type=NamingResources");
+
// Initialize our defined Services
for (int i = 0; i < services.length; i++) {
services[i].init();
unregister(onameStringCache);
+ unregister(onameNamingResoucres);
+
super.destroyInternal();
}
private ObjectName onameStringCache;
private ObjectName onameMBeanFactory;
+ private ObjectName onameNamingResoucres;
/**
* Obtain the MBean domain for this server. The domain is obtained using