I've been trying to use the new distributed domain stuff - domain-manager and node2* etc - to get Tomcat as a domain manager with SCA webapps being individual nodes, but not really making much progress getting it to work so asking here to see if there are any suggestions - mainly from you Sebastien as you've written most of those new modules :-)
What i'd like is for during Tomcat startup to create a domain manager and then as each webapp is initialized create a new node for each webapp and register it with the domain, and to do that registration with in-JVM calls. Right now the domain manger needs to know about all the nodes before the domain can be started (i think?) but thats problematic in this scenario as the webapps are initialized one by one and its hard to batch all those up and then initialize the domain and then correctly insert the node into the webapps context. This is discussed in a bit more detail in the thread at [1]. I wondered about enhancing the domain manager so that it can be created "empty" and then create/register nodes one-by-one and then activate the domain once thats done (which probably would require the more dynamic endpoint stuff being talked about in [2]), but I'm not sure that approach really fits in with the current design of the distributed domain support? WDYT, any comments or suggestions? ...ant [1] http://apache.markmail.org/message/2i6gtkveapk3n4nr [2] http://www.mail-archive.com/[email protected]/msg30314.html
