You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jb...@apache.org on 2007/03/20 23:58:35 UTC
svn commit: r520639 - in
/incubator/tuscany/java/distribution/sca/demo/src/main/profiles:
master/system.scdl slave1/system.scdl slave2/system.scdl
Author: jboynes
Date: Tue Mar 20 15:58:34 2007
New Revision: 520639
URL: http://svn.apache.org/viewvc?view=rev&rev=520639
Log:
remove primordial components from system scdl
Modified:
incubator/tuscany/java/distribution/sca/demo/src/main/profiles/master/system.scdl
incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave1/system.scdl
incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave2/system.scdl
Modified: incubator/tuscany/java/distribution/sca/demo/src/main/profiles/master/system.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/distribution/sca/demo/src/main/profiles/master/system.scdl?view=diff&rev=520639&r1=520638&r2=520639
==============================================================================
--- incubator/tuscany/java/distribution/sca/demo/src/main/profiles/master/system.scdl (original)
+++ incubator/tuscany/java/distribution/sca/demo/src/main/profiles/master/system.scdl Tue Mar 20 15:58:34 2007
@@ -143,28 +143,10 @@
class="org.apache.tuscany.core.implementation.java.JavaPhysicalComponentBuilder"/>
</component>
- <!-- Classloader registry -->
- <component name="classLoaderRegistry">
- <system:implementation.system
- class="org.apache.tuscany.core.services.classloading.ClassLoaderRegistryImpl"/>
- </component>
-
<!-- Federated deployer -->
<component name="federateDeployer">
<system:implementation.system
class="org.apache.tuscany.core.deployer.federation.FederatedDeployer"/>
- </component>
-
- <!-- Component manager -->
- <component name="componentManager">
- <system:implementation.system
- class="org.apache.tuscany.core.component.ComponentManagerImpl"/>
- </component>
-
- <!-- Connector -->
- <component name="connector">
- <system:implementation.system
- class="org.apache.tuscany.core.builder.ConnectorImpl"/>
</component>
<!-- Jetty HTTP service -->
Modified: incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave1/system.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave1/system.scdl?view=diff&rev=520639&r1=520638&r2=520639
==============================================================================
--- incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave1/system.scdl (original)
+++ incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave1/system.scdl Tue Mar 20 15:58:34 2007
@@ -123,24 +123,9 @@
<system:implementation.system class="org.apache.tuscany.core.implementation.java.JavaPhysicalComponentBuilder"/>
</component>
- <!-- Classloader registry -->
- <component name="classLoaderRegistry">
- <system:implementation.system class="org.apache.tuscany.core.services.classloading.ClassLoaderRegistryImpl"/>
- </component>
-
<!-- Federated deployer -->
<component name="federateDeployer">
<system:implementation.system class="org.apache.tuscany.core.deployer.federation.FederatedDeployer"/>
- </component>
-
- <!-- Component manager -->
- <component name="componentManager">
- <system:implementation.system class="org.apache.tuscany.core.component.ComponentManagerImpl"/>
- </component>
-
- <!-- Connector -->
- <component name="connector">
- <system:implementation.system class="org.apache.tuscany.core.builder.ConnectorImpl"/>
</component>
<!-- Jetty HTTP service -->
Modified: incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave2/system.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave2/system.scdl?view=diff&rev=520639&r1=520638&r2=520639
==============================================================================
--- incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave2/system.scdl (original)
+++ incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave2/system.scdl Tue Mar 20 15:58:34 2007
@@ -132,28 +132,10 @@
class="org.apache.tuscany.core.implementation.java.JavaPhysicalComponentBuilder"/>
</component>
- <!-- Classloader registry -->
- <component name="classLoaderRegistry">
- <system:implementation.system
- class="org.apache.tuscany.core.services.classloading.ClassLoaderRegistryImpl"/>
- </component>
-
<!-- Federated deployer -->
<component name="federateDeployer">
<system:implementation.system
class="org.apache.tuscany.core.deployer.federation.FederatedDeployer"/>
- </component>
-
- <!-- Component manager -->
- <component name="componentManager">
- <system:implementation.system
- class="org.apache.tuscany.core.component.ComponentManagerImpl"/>
- </component>
-
- <!-- Connector -->
- <component name="connector">
- <system:implementation.system
- class="org.apache.tuscany.core.builder.ConnectorImpl"/>
</component>
<!-- Jetty HTTP service -->
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org
Re: svn commit: r520639 - in /incubator/tuscany/java/distribution/sca/demo/src/main/profiles: master/system.scdl slave1/system.scdl slave2/system.scdl
Posted by Jeremy Boynes <jb...@apache.org>.
On Mar 20, 2007, at 4:09 PM, Raymond Feng wrote:
> Hi,
>
> Interestingly I just hit the same issue independent of your work. I
> got two instances of the ComponentManager and the one contributed
> from the system.scdl shadows the primordial one.
Which actually the correct behaviour, just not the desired one here :-)
>
> Does it mean the primordial components are not replaceable?
Depends on what you mean by replaceable.
The way AbstractRuntime boots it:
* creates a primordial fabric (ComponentManager, Connector, about 4
other components)
* creates a primordial deployer runtime
* uses the deployer runtime to deploy the system scdl into the
primordial fabric creating the local runtime
(the remaining 100 or so components)
* uses the freshly booted system to load applications
The primordial components are those needed to wire the composite in
the system scdl. For example, the components it contains need to be
registered with a ComponentManager as they are deployed, so the
ComponentManager can't be in the system scdl.
Instead, they are created by the createBootstrapper() call and
registered in registerBaselineSystemComponents(), both of which are
overridable allowing the implementations to be replaced. If that
doesn't go far enough, the entire AbstractRuntime class can be
replaced with something that boots the local runtime in a completely
different way. For someone considering swapping out the fabric,
that's a trivial change.
--
Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: svn commit: r520639 - in /incubator/tuscany/java/distribution/sca/demo/src/main/profiles: master/system.scdl slave1/system.scdl slave2/system.scdl
Posted by Raymond Feng <en...@gmail.com>.
Hi,
Interestingly I just hit the same issue independent of your work. I got two
instances of the ComponentManager and the one contributed from the
system.scdl shadows the primordial one.
Does it mean the primordial components are not replaceable?
Thanks,
Raymond
----- Original Message -----
From: <jb...@apache.org>
To: <tu...@ws.apache.org>
Sent: Tuesday, March 20, 2007 3:58 PM
Subject: svn commit: r520639 - in
/incubator/tuscany/java/distribution/sca/demo/src/main/profiles:
master/system.scdl slave1/system.scdl slave2/system.scdl
> Author: jboynes
> Date: Tue Mar 20 15:58:34 2007
> New Revision: 520639
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=520639
> Log:
> remove primordial components from system scdl
>
> Modified:
>
> incubator/tuscany/java/distribution/sca/demo/src/main/profiles/master/system.scdl
>
> incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave1/system.scdl
>
> incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave2/system.scdl
>
> Modified:
> incubator/tuscany/java/distribution/sca/demo/src/main/profiles/master/system.scdl
> URL:
> http://svn.apache.org/viewvc/incubator/tuscany/java/distribution/sca/demo/src/main/profiles/master/system.scdl?view=diff&rev=520639&r1=520638&r2=520639
> ==============================================================================
> ---
> incubator/tuscany/java/distribution/sca/demo/src/main/profiles/master/system.scdl
> (original)
> +++
> incubator/tuscany/java/distribution/sca/demo/src/main/profiles/master/system.scdl
> Tue Mar 20 15:58:34 2007
> @@ -143,28 +143,10 @@
>
> class="org.apache.tuscany.core.implementation.java.JavaPhysicalComponentBuilder"/>
> </component>
>
> - <!-- Classloader registry -->
> - <component name="classLoaderRegistry">
> - <system:implementation.system
> -
> class="org.apache.tuscany.core.services.classloading.ClassLoaderRegistryImpl"/>
> - </component>
> -
> <!-- Federated deployer -->
> <component name="federateDeployer">
> <system:implementation.system
> class="org.apache.tuscany.core.deployer.federation.FederatedDeployer"/>
> - </component>
> -
> - <!-- Component manager -->
> - <component name="componentManager">
> - <system:implementation.system
> - class="org.apache.tuscany.core.component.ComponentManagerImpl"/>
> - </component>
> -
> - <!-- Connector -->
> - <component name="connector">
> - <system:implementation.system
> - class="org.apache.tuscany.core.builder.ConnectorImpl"/>
> </component>
>
> <!-- Jetty HTTP service -->
>
> Modified:
> incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave1/system.scdl
> URL:
> http://svn.apache.org/viewvc/incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave1/system.scdl?view=diff&rev=520639&r1=520638&r2=520639
> ==============================================================================
> ---
> incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave1/system.scdl
> (original)
> +++
> incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave1/system.scdl
> Tue Mar 20 15:58:34 2007
> @@ -123,24 +123,9 @@
> <system:implementation.system
> class="org.apache.tuscany.core.implementation.java.JavaPhysicalComponentBuilder"/>
> </component>
>
> - <!-- Classloader registry -->
> - <component name="classLoaderRegistry">
> - <system:implementation.system
> class="org.apache.tuscany.core.services.classloading.ClassLoaderRegistryImpl"/>
> - </component>
> -
> <!-- Federated deployer -->
> <component name="federateDeployer">
> <system:implementation.system
> class="org.apache.tuscany.core.deployer.federation.FederatedDeployer"/>
> - </component>
> -
> - <!-- Component manager -->
> - <component name="componentManager">
> - <system:implementation.system
> class="org.apache.tuscany.core.component.ComponentManagerImpl"/>
> - </component>
> -
> - <!-- Connector -->
> - <component name="connector">
> - <system:implementation.system
> class="org.apache.tuscany.core.builder.ConnectorImpl"/>
> </component>
>
> <!-- Jetty HTTP service -->
>
> Modified:
> incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave2/system.scdl
> URL:
> http://svn.apache.org/viewvc/incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave2/system.scdl?view=diff&rev=520639&r1=520638&r2=520639
> ==============================================================================
> ---
> incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave2/system.scdl
> (original)
> +++
> incubator/tuscany/java/distribution/sca/demo/src/main/profiles/slave2/system.scdl
> Tue Mar 20 15:58:34 2007
> @@ -132,28 +132,10 @@
>
> class="org.apache.tuscany.core.implementation.java.JavaPhysicalComponentBuilder"/>
> </component>
>
> - <!-- Classloader registry -->
> - <component name="classLoaderRegistry">
> - <system:implementation.system
> -
> class="org.apache.tuscany.core.services.classloading.ClassLoaderRegistryImpl"/>
> - </component>
> -
> <!-- Federated deployer -->
> <component name="federateDeployer">
> <system:implementation.system
> class="org.apache.tuscany.core.deployer.federation.FederatedDeployer"/>
> - </component>
> -
> - <!-- Component manager -->
> - <component name="componentManager">
> - <system:implementation.system
> - class="org.apache.tuscany.core.component.ComponentManagerImpl"/>
> - </component>
> -
> - <!-- Connector -->
> - <component name="connector">
> - <system:implementation.system
> - class="org.apache.tuscany.core.builder.ConnectorImpl"/>
> </component>
>
> <!-- Jetty HTTP service -->
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-commits-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org