On Tue, Apr 19, 2011 at 5:03 PM, Simon Laws <[email protected]> wrote:

<snip>

> I ended up finding that I was pretty comfortable about having a domain
> on disc and then starting nodes with minimal configuration, I'd like
> to look at working this up into a real piece of code in the shell or
> the launcher. Anyone have any thoughts about this.
>

I've been wondering how to do a similar type of thing but in as simple
as possible a way and so i'd quite like to avoid having to use a
node.xml file. An alternative could be to use the file directory names
to define what the domain/node looks like. To explore that I've added
a new method createNode(File) to TuscanyRuntime where the File points
to a file system directory which contains all the contributions and
configuration. There's a test DirectoryDomainTestCase and a couple of
test domain folders at:
https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/resources/test-domains.
This looks like it has some potential to me, and it could be used to
extend the existing support for contribution folders in places like
the webapp runtime and Tomcat deep integration.

   ...ant

Reply via email to