Skip to Content.
Sympa Menu

notify-dpml - r897 - trunk/main/metro/runtime/src/main/net/dpml/metro/runtime

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r897 - trunk/main/metro/runtime/src/main/net/dpml/metro/runtime
  • Date: Tue, 10 Jan 2006 07:34:43 +0100

Author: mcconnell
Date: 2006-01-10 07:34:40 +0100 (Tue, 10 Jan 2006)
New Revision: 897

Modified:

trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/ComponentHandler.java
Log:
capture and log deployment failure information

Modified:
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/ComponentHandler.java
===================================================================
---
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/ComponentHandler.java
2006-01-10 06:15:10 UTC (rev 896)
+++
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/ComponentHandler.java
2006-01-10 06:34:40 UTC (rev 897)
@@ -433,27 +433,33 @@
}

m_parts.commission();
-
- //
- // activate the children
- //
-
- //Component[] components = (Component[])
m_handlers.values().toArray( new Component[0] );
- //for( int i=0; i<components.length; i++ )
- //{
- // Component component = components[i];
- // component.activate();
- //}
-
m_active = true;
}
catch( RemoteException e )
{
+ getLogger().warn( "activation failed due to a remote exception",
e );
deactivate();
final String error =
"Remote exception raised while attempting to access component
activation policy.";
throw new ControllerException( error, e );
}
+ catch( ControlException e )
+ {
+ getLogger().warn( "activation failed due to a control
exception", e );
+ deactivate();
+ throw e;
+ }
+ catch( InvocationTargetException e )
+ {
+ getLogger().warn( "activation failed due to a client initated
invocation exception", e );
+ deactivate();
+ throw e;
+ }
+ catch( Throwable e )
+ {
+ getLogger().warn( "activation failed due to a unexpected
exception", e );
+ deactivate();
+ }
finally
{
if( !m_active )




  • r897 - trunk/main/metro/runtime/src/main/net/dpml/metro/runtime, mcconnell at BerliOS, 01/10/2006

Archive powered by MHonArc 2.6.24.

Top of Page