CDV ❯ Option to specify DSO root names for matching Spring App context
-
New Feature
-
Status: Open
-
3 Minor
-
Resolution:
-
SpringRuntime
-
-
prodmgmt
-
Reporter: ekulesho
-
October 03, 2006
-
2
-
Watchers: 2
-
March 19, 2010
-
Attachments
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
That is very simple but important addition and will only affect how we create name for the roots.
Comments
Fiona OShea 2006-10-04
Dileo Moreira 2006-10-25
After consulting with Eugene, he now suggests we use the same notation as for DSO roots.
New notation:
I’ve implemented new configuration element and was able to map beans from different contexts to the same root. But unfortunately it wasn’t too useful, because of this error. It seems like we need to figure out how to map or rename classloaders between the nodes to make such configuration work.
Caused by: com.tc.exception.TCRuntimeException: java.lang.ClassNotFoundException: No registered loader for description: Tomcat.context:/jmx, trying to load com.tcspring.ComplexBeanId at com.tc.object.ClientObjectManagerImpl.lookup(ClientObjectManagerImpl.java:502) at com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:399) at com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:392) at com.tc.object.applicator.HashMapApplicator.getObjectForKey(HashMapApplicator.java:137) at com.tc.object.applicator.HashMapApplicator.apply(HashMapApplicator.java:102) at com.tc.object.applicator.HashMapApplicator.hydrate(HashMapApplicator.java:92) at com.tc.object.TCClassImpl.hydrate(TCClassImpl.java:152) at com.tc.object.TCObjectImpl.hydrate(TCObjectImpl.java:103) … 21 more Caused by: java.lang.ClassNotFoundException: No registered loader for description: Tomcat.context:/jmx, trying to load com.tcspring.ComplexBeanId at com.tc.object.loaders.StandardClassProvider.getClassFor(StandardClassProvider.java:38) at com.tc.object.ClientObjectManagerImpl.lookup(ClientObjectManagerImpl.java:494) … 28 more
Pacheco PRD Priority 96
Do you want this included in Lawton