Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c3fad554 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- fixed database connection stuff

- commented out JADE call ?
parent 73891c9c
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,8 @@ import java.util.Set; ...@@ -27,6 +27,8 @@ import java.util.Set;
import java.util.HashSet; import java.util.HashSet;
import java.util.Enumeration; import java.util.Enumeration;
import java.sql.SQLException;
import fr.inrialpes.exmo.align.service.StoreRDFFormat; import fr.inrialpes.exmo.align.service.StoreRDFFormat;
import fr.inrialpes.exmo.align.service.DBService; import fr.inrialpes.exmo.align.service.DBService;
import fr.inrialpes.exmo.align.service.CacheImpl; import fr.inrialpes.exmo.align.service.CacheImpl;
...@@ -44,7 +46,7 @@ public class AServProtocolManager { ...@@ -44,7 +46,7 @@ public class AServProtocolManager {
services = new Hashtable(); services = new Hashtable();
} }
public void init( DBService connection, Parameters p ) { public void init( DBService connection, Parameters p ) throws SQLException {
alignmentCache = new CacheImpl( connection ); alignmentCache = new CacheImpl( connection );
alignmentCache.init(); alignmentCache.init();
// This is ugly but it seems that Java does not provides the // This is ugly but it seems that Java does not provides the
......
...@@ -63,8 +63,8 @@ $Id$ ...@@ -63,8 +63,8 @@ $Id$
*/ */
public class AlignmentService { public class AlignmentService {
private String DbName = null; private String DbName = "adminAServ";
private String DbPassword = null; private String DbPassword = "aaa345";
private AServProtocolManager manager; private AServProtocolManager manager;
...@@ -185,7 +185,7 @@ public class AlignmentService { ...@@ -185,7 +185,7 @@ public class AlignmentService {
// This will have to be changed to a more generic way by // This will have to be changed to a more generic way by
// launching all the requested profile or all the available profiles // launching all the requested profile or all the available profiles
// TODO Auto-generated method stub // TODO Auto-generated method stub
JadeFIPAAServProfile JADEServeur = new JadeFIPAAServProfile(); /*JadeFIPAAServProfile JADEServeur = new JadeFIPAAServProfile();
try{ JADEServeur.init( params, manager ); } try{ JADEServeur.init( params, manager ); }
catch ( AServException e ) { catch ( AServException e ) {
System.err.println( "Couldn't start server:\n" + e ); System.err.println( "Couldn't start server:\n" + e );
...@@ -193,7 +193,7 @@ public class AlignmentService { ...@@ -193,7 +193,7 @@ public class AlignmentService {
// not good // not good
} }
//catch (Exception e) {e.printStackTrace();} //catch (Exception e) {e.printStackTrace();}
*/
if ( debug > 0 ) System.err.println("AServ launched on http://localhost:"+params.getParameter("jadeport")); if ( debug > 0 ) System.err.println("AServ launched on http://localhost:"+params.getParameter("jadeport"));
try { System.in.read(); } catch( Throwable t ) {}; try { System.in.read(); } catch( Throwable t ) {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment