Revert "ref #6118 catching exception during checkConnection"
authorAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Tue, 11 Oct 2016 16:29:48 +0000 (18:29 +0200)
committerAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Tue, 11 Oct 2016 16:29:48 +0000 (18:29 +0200)
This reverts commit bb7b4f601b49f1ba29f149405246f120b4c46a9a.

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/source/CdmRemoteSourceBase.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStore.java

index fc2b42c33d54f7610a6a7e7a7ce9c39ddf88e34c..59c24ea3b2f5497c692570e00582113aee6584b0 100644 (file)
@@ -10,8 +10,6 @@ package eu.etaxonomy.taxeditor.remoting.source;
 
 import java.util.Map;
 
-import org.springframework.remoting.RemoteAccessException;
-
 import eu.etaxonomy.cdm.api.application.CdmApplicationRemoteConfiguration;
 import eu.etaxonomy.cdm.api.service.IMetadataService;
 import eu.etaxonomy.cdm.config.CdmSource;
@@ -134,11 +132,8 @@ public class CdmRemoteSourceBase extends CdmSource implements ICdmRemoteSource {
                // the connection is up
                // if no exception is thrown then we assume that the
                // connection is up
-           try {
-               metadataService.getDbSchemaVersion();
-           } catch (RemoteAccessException e) {
-               throw new CdmSourceException("RemoteAccessException: " + e.getMessage());
-           }
+               // FIXME:Remoting is this really correct?
+               metadataService.getDbSchemaVersion();
 
                return true;
        }
index 8bc4ee63e95017f784f7a28452545e5ba5232a2a..2ed42b85b4a8abb4419df3ffa335da12fc48b57c 100644 (file)
@@ -198,7 +198,6 @@ public class CdmStore {
             final DbSchemaValidation dbSchemaValidation,
             final Resource applicationContextBean,
             RemotingLoginDialog remotingLoginDialog) {
-
         RemotingLoginDialog loginDialog = remotingLoginDialog;
         if(isActive()) {
             // before we connect we clear the entity caches and the sessions
@@ -267,7 +266,7 @@ public class CdmStore {
             ICdmSource cdmSource) {
         instance = new CdmStore(applicationController, cdmSource);
         CdmApplicationState.setCdmServiceCacher(new CdmServiceCacher());
-
+        
     }
 
     private CdmStore(ICdmApplicationConfiguration applicationController,