summaryrefslogtreecommitdiff
path: root/src/YalpInputs/YalpPGSqlInput
diff options
context:
space:
mode:
authorguest <guest@f059d3a0-6783-47b7-97ff-1fe0bbf25129>2008-09-24 20:38:37 +0000
committerguest <guest@f059d3a0-6783-47b7-97ff-1fe0bbf25129>2008-09-24 20:38:37 +0000
commitab841adc06acd2a6ff161ea866579674ce5ff99e (patch)
treeb65d8a9028848e4d777bc6fbe777b7adda4b4fbc /src/YalpInputs/YalpPGSqlInput
parentf6825ebc115029fcf575033748e3372efb94c87d (diff)
added YalpServer InputPluginHandling (incomplete)
git-svn-id: http://manut.eu/svn/yalp/trunk@5 f059d3a0-6783-47b7-97ff-1fe0bbf25129
Diffstat (limited to 'src/YalpInputs/YalpPGSqlInput')
-rw-r--r--src/YalpInputs/YalpPGSqlInput/YalpInputPluginImpl.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/YalpInputs/YalpPGSqlInput/YalpInputPluginImpl.java b/src/YalpInputs/YalpPGSqlInput/YalpInputPluginImpl.java
index 7f599be..4d0a602 100644
--- a/src/YalpInputs/YalpPGSqlInput/YalpInputPluginImpl.java
+++ b/src/YalpInputs/YalpPGSqlInput/YalpInputPluginImpl.java
@@ -10,6 +10,9 @@ import org.omg.CosNaming.*;
import org.omg.CosNaming.NamingContextPackage.*;
import org.omg.CORBA.*;
+import org.apache.log4j.Logger;
+import org.apache.log4j.PropertyConfigurator;
+
import YalpInterfaces.*;
public class YalpInputPluginImpl extends InputPluginInterfacePOA {
@@ -19,12 +22,20 @@ public class YalpInputPluginImpl extends InputPluginInterfacePOA {
private String dbpasswd;
private Statement stat;
private Connection con;
+
private PluginInfo pluginInfo;
+
+ private String log4jFile = "log4j_input_plugin.conf";
+
+ private static Logger logger =
+ Logger.getLogger("Yalp.InputPlugins.PGSqlInput.YalpInputPluginImpl");
+
private ORB orb;
public YalpInputPluginImpl()
{
- System.out.println("YalpInputPluginImpl()");
+ PropertyConfigurator.configureAndWatch(log4jFile);
+ logger.debug("YalpInputPluginImpl()");
}
public void setORB(ORB _orb)
@@ -98,6 +109,7 @@ public class YalpInputPluginImpl extends InputPluginInterfacePOA {
* List with Results matching search criteria
*/
public void search(String str, MediaType[] types, MediasHolder result, YalpErrorHolder err) {
+ System.out.println("juhu: searching for: "+str);
/* t.b.d. alter this to new database design
try{
ArrayList <String > searchWords=stringCut(media.str);