On Mon, Jun 8, 2009 at 9:10 AM, Ramkumar R<[email protected]> wrote:
> Currently, I am updating the contributions import and export code according
> to the
> OASIS recommendations.
>
> The itest for contribution imports/exports does require the code for
> creating a domain
> and add multiple contributions to the domain to validate the functionality.
>
> In 1.x, we had either the EmbeddedSCADomain class or the classes from
> Workspace
> module to take care of this requirement, in absence of both of these classes
> in 2.x
> how should we go about creating a domain in 2.x?
>
If you know about all the contributions before hand (so don't need to
dynamically add contributions to an existing domain/node) you can use
the Node APIs and tell it about all the contributions when you create
the Node:
node = NodeFactory.newInstance().createNode(
new Contribution("client",
"..\\helloworld-client\\target\\itest-nodes-helloworld-client-2.0-SNAPSHOT.jar"),
new Contribution("service",
"..\\helloworld-service\\target\\itest-nodes-helloworld-service-2.0-SNAPSHOT.jar"));
though note that there is an issue with that, see the emails at [1].
Otherwise there isn't a way presently, thats what all the endpoint
changes being talked about and TUSCANY-3081 will give us.
...ant
[1] http://apache.markmail.org/message/vwh6oux23hd2souc