Tom Cunningham created JBESB-3747:
-------------------------------------
Summary: remove-old-service will throw ServiceNotFoundException, skip
registerEpr
Key: JBESB-3747
URL:
https://issues.jboss.org/browse/JBESB-3747
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Registry and Repository
Affects Versions: 4.11
Reporter: Tom Cunningham
Assignee: Tom Cunningham
Fix For: 4.11
From Martin Weiler:
In case the service is being deployed for the first time, this
setting prevents it from being registered:
try
{
if ("true".equalsIgnoreCase(removeOldService))
registry.unRegisterService(category, name);
registry.registerEPR(category, name,
serviceDescription, epr, eprDescription) ;
}
catch (ServiceNotFoundException ex)
{
// ignore as it's possible another client just did
the removal for us.
logger.debug("Could not unregister service<
"+category+", "+name+">.");
}
Shouldn't the registry.registerEPR call happen after the
ServiceNotFoundException is caught?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira