Author: ffang
Date: Thu May 14 05:39:05 2009
New Revision: 774643

URL: http://svn.apache.org/viewvc?rev=774643&view=rev
Log:
[SMXCOMP-540]Registration/deregistration problem for consumer endpoint

Modified:
    
servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java

Modified: 
servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
URL: 
http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java?rev=774643&r1=774642&r2=774643&view=diff
==============================================================================
--- 
servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
 (original)
+++ 
servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
 Thu May 14 05:39:05 2009
@@ -319,10 +319,15 @@
     @Override
     public void start() throws Exception {
         super.start();
-        registerListServiceHandler();
-        applyFeatures();
-        checkJmsTransportTransaction();
-        server.start();
+        try {
+            registerListServiceHandler();
+            applyFeatures();
+            checkJmsTransportTransaction();
+            server.start();
+        } catch (Exception ex) {
+            super.stop();
+            throw ex;
+        }
     }
     
     private void checkJmsTransportTransaction() {


Reply via email to