-
Bug
-
Resolution: Done
-
Major
-
jbossws-1.0.3
-
None
Related to a WARN produced when shuting down jboss:
23:53:00,053 WARN [SubscriptionManager] Cannot unbind event dispatcher: javax.naming.NameNotFoundException: EventDispatcher not bound
org/jboss/ws/eventing/mgmt/SubscriptionManager.java althouth it lazily binds the EventDispatcher, it always tries to unbind it:
public void stop()
{
log.debug("Stop subscription manager");
try
{
// remove event dispatcher
Util.unbind(new InitialContext(), EventingConstants.DISPATCHER_JNDI_NAME);
// stop thread pool
threadPool.shutdown();
// stop the watchdog
watchDog.shutdown();
for (URI eventSourceNS : eventSourceMapping.keySet())
{ removeEventSource(eventSourceNS); } }
catch (NamingException e)
}
Something like the following is needed:
private void unbindEventDispatcher()
{
if (isDispatcherBound)
{
try
catch (NamingException e)
{ log.warn("Cannot unbind event dispatcher: " + e.toString()); } }
}
public void stop()
{
log.debug("Stop subscription manager");
unbindEventDispatcher()
// stop thread pool
threadPool.shutdown();
// stop the watchdog
watchDog.shutdown();
for (URI eventSourceNS : eventSourceMapping.keySet())
{ removeEventSource(eventSourceNS); }}
- relates to
-
JBAS-3471 Shutdown of 'jbossws14.sar#jbossws.beans' produces WARNing
- Closed