Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
fix error handling to ensure reg/dereg completes
Browse files Browse the repository at this point in the history
  • Loading branch information
grze committed Apr 20, 2011
1 parent d4a0d0d commit 42203d9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public void leave( final ServiceConfiguration parent, final Completion transitio
try {
parent.lookupComponent( ).getBuilder( ).fireStart( parent );
transitionCallback.fire( );//TODO:GRZE: this is not complete.
} catch ( ServiceRegistrationException ex ) {
} catch ( Throwable ex ) {
LOG.error( "Transition failed on "
+ parent.lookupComponent( ).getName( )
+ " due to "
Expand Down Expand Up @@ -275,7 +275,7 @@ public void leave( ServiceConfiguration parent, Completion transitionCallback )
try {
parent.lookupComponent( ).getBuilder( ).fireEnable( parent );
transitionCallback.fire( );//TODO:GRZE: this is not complete.
} catch ( ServiceRegistrationException ex ) {
} catch ( Throwable ex ) {
LOG.error( "Transition failed on "
+ parent.lookupComponent( ).getName( )
+ " due to "
Expand Down Expand Up @@ -307,7 +307,7 @@ public void leave( ServiceConfiguration parent, Completion transitionCallback )
try {
parent.lookupComponent( ).getBuilder( ).fireDisable( parent );
transitionCallback.fire( );//TODO:GRZE: this is not complete.
} catch ( ServiceRegistrationException ex ) {
} catch ( Throwable ex ) {
LOG.error( "Transition failed on "
+ parent.lookupComponent( ).getName( )
+ " due to "
Expand Down Expand Up @@ -339,7 +339,7 @@ public void leave( ServiceConfiguration parent, Completion transitionCallback )
try {
parent.lookupComponent( ).getBuilder( ).fireStop( parent );
transitionCallback.fire( );//TODO:GRZE: this is not complete.
} catch ( ServiceRegistrationException ex ) {
} catch ( Throwable ex ) {
LOG.error( "Transition failed on "
+ parent.lookupComponent( ).getName( )
+ " due to "
Expand Down Expand Up @@ -395,7 +395,7 @@ public void leave( ServiceConfiguration parent, Completion transitionCallback )
if ( parent.lookupComponent( ).hasLocalService( ) ) {
parent.lookupComponent( ).getBuilder( ).fireDisable( parent );
}
} catch ( ServiceRegistrationException ex1 ) {
} catch ( Throwable ex1 ) {
LOG.error( "Transition failed on "
+ parent.lookupComponent( ).getName( )
+ " due to "
Expand Down

0 comments on commit 42203d9

Please sign in to comment.