changeset 5588:3e8f7b4bdf20 2.9.17

Don't use SedDB in Datacage (temp fix)
author Sascha L. Teichmann <teichmann@intevation.de>
date Mon, 08 Apr 2013 11:03:14 +0200
parents 7b1c5fe4ebf3
children 1827798ca53f
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Recommendations.java
diffstat 1 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Recommendations.java	Sun Apr 07 11:38:15 2013 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Recommendations.java	Mon Apr 08 11:03:14 2013 +0200
@@ -212,6 +212,18 @@
             public void execute(final Connection systemConnection)
             throws SQLException
             {
+                recommend(
+                    parameters, userId, result,
+                    systemConnection,
+                    (Connection)null);
+            }
+        });
+        /*
+        systemSession.doWork(new Work() {
+            @Override
+            public void execute(final Connection systemConnection)
+            throws SQLException
+            {
                 SedDBSessionHolder.HOLDER.get().doWork(new Work() {
                     @Override
                     public void execute(Connection sedDBConnection)
@@ -225,6 +237,7 @@
                 });
             }
         });
+        */
     }
 
     public void recommend(
@@ -250,8 +263,10 @@
             connections.add(new Builder.NamedConnection(
                 CONNECTION_SYSTEM, systemConnection, true));
 
-            connections.add(new Builder.NamedConnection(
-                CONNECTION_SEDDB, seddbConnection, true));
+            if (seddbConnection != null) {
+                connections.add(new Builder.NamedConnection(
+                    CONNECTION_SEDDB, seddbConnection, true));
+            }
 
             if (userConnection != null) {
                 connections.add(new Builder.NamedConnection(

http://dive4elements.wald.intevation.org