Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0-M2
-
Fix Version/s: 2.0.0-RC1
-
Component/s: Core: Configuration
-
Labels:None
-
User impact:Medium
-
Similar Issues:
MULE-1239Mule Manager ID is not set when using Mule+Spring configurationMULE-2142Server ID is automatically generated in spite of that "id" attribue is set in mule-configuration
MULE-5196 Ambiguous bean naming causes spurious errors with parent bean context
MULE-5838 JMSMessageToObject fails to set Correlation-ID when passed as inbound property
MULE-4746 Inconsistent bean name generation causes double instantiation
MULE-5107 Advancement of a jBPM process with a manually set process ID is brokenMULE-2083Improve handling of global (default) beans in configMULE-180Can't set a transformer as a bean property when defined in a <properties> element
MULE-5216 Setting the payload to a spring bean ref on an quartz:event-generator-job causes an exceptionMULE-31Duplicate class
Description
there's a util method we should be using (can't remember where) that will do this - check that all name/id use is regularized.
from email:
I am writing some examples based on Mule Configuration and Spring configuration intertwined.
In case that spring bean ID is set (and the name isn't set), I can see that the instance created and registered twice, first time with his id and the second time .:id
It happens in MuleHierarchicalBeanDefinitionParserDelegate.java
protected String generateChildBeanName(Element e)
{ //same thing can happen here. String parentId = ((Element) e.getParentNode()).getAttribute("name"); id = e.getLocalName(); return "." + parentId + ":" + id; }{
String id = e.getAttribute("name"); //isn't it suppose to check also the id ?
if (StringUtils.isBlank(id))
else
{ return id; }}