summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/node-impl/src
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-10-21 18:00:07 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-10-21 18:00:07 +0000
commit11d80a409e2d7e65be7e46ca872d995d35964f83 (patch)
treeede8e38bd57fb796fd81362a4ac6744fccaf6d16 /java/sca/modules/node-impl/src
parent685e0996023a229894a43185d3da8a8f0e148669 (diff)
Set the monitor to ValidatingXMLStreamReader
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@828119 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/node-impl/src')
-rw-r--r--java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java20
1 files changed, 13 insertions, 7 deletions
diff --git a/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java b/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
index 768d5a63d7..4de400db11 100644
--- a/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
+++ b/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
@@ -124,16 +124,22 @@ public class NodeImpl implements Node, Client {
this.compositeActivator = utilities.getUtility(CompositeActivator.class);
try {
Monitor monitor = manager.monitorFactory.createMonitor();
- monitor.reset();
-
ProcessorContext context = new ProcessorContext(monitor);
- if (contributions == null) {
- contributions = manager.loadContributions(configuration, context);
+ // Set up the thead context monitor
+ Monitor tcm = manager.monitorFactory.setContextMonitor(monitor);
+ try {
+ if (contributions == null) {
+ contributions = manager.loadContributions(configuration, context);
+ }
+ domainComposite = manager.configureNode(configuration, contributions, context);
+
+ this.compositeContext =
+ new CompositeContextImpl(manager.extensionPoints, endpointRegistry, domainComposite);
+ } finally {
+ // Reset the thread context monitor
+ manager.monitorFactory.setContextMonitor(tcm);
}
- domainComposite = manager.configureNode(configuration, contributions, context);
-
- this.compositeContext = new CompositeContextImpl(manager.extensionPoints, endpointRegistry, domainComposite);
// Activate the composite
compositeActivator.activate(compositeContext, domainComposite);