On Tue, Jun 14, 2011 at 8:24 AM, ant elder <ant.el...@gmail.com> wrote:
> On Tue, Apr 19, 2011 at 5:03 PM, Simon Laws <simonsl...@googlemail.com> 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
>

Just for comparison. [1] was what I came up with. I was also using
directory names as a convention for naming the domain and the nodes
running within it. Looking at the test-domain version what do the
composite file and xml file at the top level mean? Also where is the
configuration that tells you what is running where? Is that separate?

[1] 
https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/testing/itest/nodes/two-jvm-hazelcast/src/test/resources/

Regards

Simon

-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com

Reply via email to