as explanined in the post (http://forums.terracotta.org/forums/posts/list/907.page),
how can two different web applications(deployed to tomcat in example application in the post) share the same application context and same bean from same loaded library(jar file).
Attached from the post ,
with terracotta-2.6-nightly-rev7889 and spring 2.0.6) the parameter Dcom.tc.loader.system.name=myClusteredService and also the configuration parameter <root-name>myClusteredService </root-name> is used :
1. if both applications are run from eclipse as a standalone application appName(com.tcspring.ApplicationContextEventProtocol.appName) becomes myClusteredService and everything goes fine,and common bean(beanTobeShared in example) is shared btw two applications
2. if both applications are run from tomcat,there is no error(before nightly-rev7889 revison i could not execute if I gave common root-name for the two applications),but (com.tcspring.ApplicationContextEventProtocol.appName) becomes application names(not myClusteredService),because of this there are two different bean instead of one common shared bean((beanTobeShared in example)
How can both applications use the parameter com.tc.loader.system.name=myClusteredService and get the same appName for both of the applications? (so common bean can be shared by this way)