ant elder wrote:
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 :-)

I'm going to send steps to show how to run an SCA node as a web app in a different email.

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/tuscany-dev@ws.apache.org/msg30314.html


I'd like to make sure I understand your question and scenario correctly before trying answering the wrong question.

Here are the parts that I'm not following:

- create a domain manager (did u mean create an domain? deploy a domain manager as a web app? start an instance of a domain manager?)

- there is no such thing as 'start a domain', why did you think that the domain manager needed to know all the nodes before 'starting the domain'? what did you mean by 'starting the domain'?

- 'as each webapp is initialized', did you mean 'installed' or 'started'? do you have the requirement to know about the existence of a webapp (node) in an SCA domain before it's started?

- 'insert the node in the webapp context' what did you mean by that?

--
Jean-Sebastien

Reply via email to