You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org> on 2007/09/13 10:39:33 UTC

[jira] Updated: (TUSCANY-1539) The assembly model does not contain the annotated intent information

     [ https://issues.apache.org/jira/browse/TUSCANY-1539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Sebastien Delfino updated TUSCANY-1539:
--------------------------------------------

    Priority: Minor  (was: Major)

Changing the priority of these issues which do not seem to be major issues.

> The assembly model does not contain the annotated intent information
> --------------------------------------------------------------------
>
>                 Key: TUSCANY-1539
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1539
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Assembly Model
>         Environment: r558780
>            Reporter: Yang Lei
>            Assignee: Venkatakrishnan
>            Priority: Minor
>             Fix For: Java-SCA-1.0
>
>
> I am following JavaAnnotationsAndAPIs section 2.3.1 and 2.4 to create an sample with both intent annotation and SCDL file. I realize no matter I define intents or not in SCDL, it is alreays the SCDL version get picked up.  I use the following code to load the composite model:
>                  EmbeddedSCADomain domain= new EmbeddedSCADomain(this.getClass().getClassLoader(),"http://"+name);
>                 domain.start();
>                 ModelResolver resolver = new ModelResolverImpl(cl);
>                 ContributionService service= util.getDomain(null).getContributionService();
>                 service.contribute(contributionId, contributionLocation, resolver, false);
>         r       service.getContribution(contributionId);
> I use the following code to display the composite :
>          Composite composite =null;
>          for (DeployedArtifact artifact : contribution.getArtifacts()) {
>              if (artifact.getModel() instanceof Composite) {
>                  if (artifact.getURI().toString().endsWith("default.composite"))
>                  {
>                      composite = ((Composite)artifact.getModel());
>                      break;
>                  }
>              }
>          }
>          if (composite!=null)
>          {
>              System.out.println("this is the artifact");
>              display(composite);
>              System.out.println("this is the added composite");
>              domain.getDomainCompositeHelper().addComposite(composite);
>              display(composite);
>              System.out.println("this is the started composite");
>              domain.getDomainCompositeHelper().startComposite(composite);
>              display(composite);
>          }
> Under all 3 cases, the composite does not contain the annotated intent setting

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org