Hi Raymond,
Thank you for your reply.
Actually, do you know any other better documentation for Tuscany rather
than the default one from Apache site?
where can I find information about factories or DSL? are they from the
OSOA specification for assembly model?
Raymond Feng wrote:
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]
--
regards;
Peizhao
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]