Hi,

Welcome to Tuscany! Please see my comments inline.

Thanks,
Raymond

----- Original Message ----- From: "Peizhao Hu" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, July 11, 2007 8:50 PM
Subject: Using Tuscany for dynamic component loading


Hi All,

I am wondering whether the Tuscany is able to perform dynamic component loading at runtime. I would like to have the Tuscany runtime as an execution environment for my service components to be composed on the fly. Firstly, can i do it?


Yes, you can do it. There are two ways to construct a Composite model programtically:
1) Use the factories (modules/tuscany-assembly)
2) Use the DSL (modules/tuscany-assembly-java-dsl, an example:org.apache.tuscany.sca.assembly.dsl.BigBankBuilder.java)

also, another thing is that when I run the calculator example, it specifies a composite file for service components. what happen if I want to write my own program, how can I tell the Tuscany runtime where to look for this composite file?


The composite file will be scanned from the archive automatically. You can write a file META-INF/sca-contributions.xml to list all the deployable composites (QNames). Please see http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/implementation-composite/src/main/resources/META-INF/sca-contribution.xml.

--
regards;

Peizhao


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to