Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
3 Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: SpringRuntime
-
Labels:None
-
Fix In Branch:trunk
-
Terracotta Target:Pending
-
LOE:1
Description
We should allow to assign aliases for the application contexts. So, such alias will be used to identify roots created for the Spring's application contexts in place where we using "synthetic id" now.
That would also allow us to share bean instances from different apps (even between standalone app and one running in tomcat) as long as they using the same aliases.
To support that we'll need to add an "alias" attribute to <application-context> element in Spring config:
<application>
<spring>
<jee-application name="*">
<application-contexts>
<application-context alias="clusteredServices">
<paths>
<path>*/context.xml</path>
</paths>
<beans>
<bean name="master" />
<bean name="queue" />
</beans>
</application-context>
</application-contexts>
</jee-application>
</spring>
</application>
That is very simple but important addition and will only affect how we create name for the roots.
Issue Links
- is related to
-
CDV-112
Sharing classes between different class loaders
-
Do you want this included in Lawton