When using EmbeddedSCADomain, this is the expected behavior, activate would include in the domain, and then you would need to start/stop specific components. See the following as an example [1]
[1] https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/itest/contribution-import-export/test-import-composite/src/test/java/helloworld/HelloWorldServerTestCase.java On 7/23/07, Vamsavardhana Reddy <[EMAIL PROTECTED]> wrote:
Hi, I have the following piece of code to add contribution to an EmbeddedSCADomain: <snip> EmbeddedSCADomain eScaDomain = new EmbeddedSCADomain(classLoader, domainUri); ModelResolverImpl modelResolver = new ModelResolverImpl(classLoader); Contribution contribution = eScaDomain.getContributionService().contribute(contributionURI, new URL(contributionRoot), modelResolver, false); for (DeployedArtifact artifact : contribution.getArtifacts()) { if (artifact.getModel() instanceof Composite) { eScaDomain.getDomainCompositeHelper ().addComposite((Composite)artifact.getModel()); } } eScaDomain.getDomainCompositeHelper().activateDomain(); </snip> Service lookup is fine. But, service invocation is throwing a NullPointerException. Upon debugging I notice that the references inside the composite are not wired. If I add a call compositeActivator.start(domainComposite) inside EmbeddedSCADomain.activateDomain() method , I am getting my code to run as expected. I am wondering if there is a problem in EmbeddedSCADomain.activateDomain() method. Thanks and regards, Vamsi
-- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://lresende.blogspot.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]