# HG changeset patch # User Sascha L. Teichmann # Date 1365411794 -7200 # Node ID 3e8f7b4bdf20f2f96edaab593dfaaefe2add46f5 # Parent 7b1c5fe4ebf3a04d34b2b2a79cf2df96c541faa0 Don't use SedDB in Datacage (temp fix) diff -r 7b1c5fe4ebf3 -r 3e8f7b4bdf20 flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Recommendations.java --- 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(